OSDN Git Service

Mark fields const if only set in constructor
authorGlenn Kasten <gkasten@google.com>
Mon, 30 Jan 2012 17:26:17 +0000 (09:26 -0800)
committerGlenn Kasten <gkasten@google.com>
Fri, 10 Feb 2012 01:00:15 +0000 (17:00 -0800)
Change-Id: Iacd06bb9efaf708cf965033be1f2297b58f7f75c

services/audioflinger/AudioResampler.h

index ee171ff..c23016e 100644 (file)
@@ -72,9 +72,9 @@ protected:
     AudioResampler(const AudioResampler&);
     AudioResampler& operator=(const AudioResampler&);
 
-    int32_t mBitDepth;
-    int32_t mChannelCount;
-    int32_t mSampleRate;
+    const int32_t mBitDepth;
+    const int32_t mChannelCount;
+    const int32_t mSampleRate;
     int32_t mInSampleRate;
     AudioBufferProvider::Buffer mBuffer;
     union {