summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2013-11-06 17:13:15 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-11-06 17:13:16 +0000
commit1b3ec0f33cbdcac5e148c23abc5bc4f68d780ed4 (patch)
treede7124828b0dbd622cf58756508b0d2eb8163316 /services
parent65f498e9f5de65135ae1954eca53de81817c8d6c (diff)
parentb2737d0b33c17e408d96d6f9eeaa3381479c94c7 (diff)
downloadframeworks_av-1b3ec0f33cbdcac5e148c23abc5bc4f68d780ed4.zip
frameworks_av-1b3ec0f33cbdcac5e148c23abc5bc4f68d780ed4.tar.gz
frameworks_av-1b3ec0f33cbdcac5e148c23abc5bc4f68d780ed4.tar.bz2
Merge "Use const more places"
Diffstat (limited to 'services')
-rw-r--r--services/audioflinger/AudioFlinger.h4
-rw-r--r--services/audioflinger/Threads.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h
index d244c14..9137040 100644
--- a/services/audioflinger/AudioFlinger.h
+++ b/services/audioflinger/AudioFlinger.h
@@ -499,7 +499,7 @@ private:
private:
const char * const mModuleName;
audio_hw_device_t * const mHwDevice;
- Flags mFlags;
+ const Flags mFlags;
};
// AudioStreamOut and AudioStreamIn are immutable, so their fields are const.
@@ -509,7 +509,7 @@ private:
struct AudioStreamOut {
AudioHwDevice* const audioHwDev;
audio_stream_out_t* const stream;
- audio_output_flags_t flags;
+ const audio_output_flags_t flags;
audio_hw_device_t* hwDev() const { return audioHwDev->hwDevice(); }
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp
index 0c44317..d4b7275 100644
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -5208,7 +5208,7 @@ String8 AudioFlinger::RecordThread::getParameters(const String8& keys)
void AudioFlinger::RecordThread::audioConfigChanged_l(int event, int param) {
AudioSystem::OutputDescriptor desc;
- void *param2 = NULL;
+ const void *param2 = NULL;
switch (event) {
case AudioSystem::INPUT_OPENED: