diff options
author | Glenn Kasten <gkasten@google.com> | 2013-08-19 12:03:11 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2013-11-04 15:27:12 -0800 |
commit | b2737d0b33c17e408d96d6f9eeaa3381479c94c7 (patch) | |
tree | 212bbe5b52e7c83fad26315c5451e32c0043eecb /services | |
parent | d21952fe5bc94f7bb6ee729f806c0e641fdb1a0d (diff) | |
download | frameworks_av-b2737d0b33c17e408d96d6f9eeaa3381479c94c7.zip frameworks_av-b2737d0b33c17e408d96d6f9eeaa3381479c94c7.tar.gz frameworks_av-b2737d0b33c17e408d96d6f9eeaa3381479c94c7.tar.bz2 |
Use const more places
Change-Id: Ibc068d319d6fff26f2d11248e17481d8f7f027e0
Diffstat (limited to 'services')
-rw-r--r-- | services/audioflinger/AudioFlinger.h | 4 | ||||
-rw-r--r-- | services/audioflinger/Threads.cpp | 2 |
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 ef90952..4028167 100644 --- a/services/audioflinger/Threads.cpp +++ b/services/audioflinger/Threads.cpp @@ -5207,7 +5207,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: |