diff options
author | 2014-08-18 22:46:10 +0900 | |
---|---|---|
committer | 2014-08-18 22:46:10 +0900 | |
commit | 1f6e52ef029e7807b6998d397556fac30b2b7ff4 (patch) | |
tree | aafa5712b982c19b6ebc445e222f78cc7a508728 /native/jni/src/utils/byte_array_view.h | |
parent | 4fbb2148ee149ef647f3f43c615911455228f3af (diff) | |
download | latinime-1f6e52ef029e7807b6998d397556fac30b2b7ff4.tar.gz latinime-1f6e52ef029e7807b6998d397556fac30b2b7ff4.tar.xz latinime-1f6e52ef029e7807b6998d397556fac30b2b7ff4.zip |
Use byte array view in ver4 dict contents.
Change-Id: Icf79a51a200f7ccd775264d1a83dd61e7dcfbab2
Diffstat (limited to 'native/jni/src/utils/byte_array_view.h')
-rw-r--r-- | native/jni/src/utils/byte_array_view.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/native/jni/src/utils/byte_array_view.h b/native/jni/src/utils/byte_array_view.h index 2c97c6d58..10d7ae278 100644 --- a/native/jni/src/utils/byte_array_view.h +++ b/native/jni/src/utils/byte_array_view.h @@ -77,10 +77,12 @@ class ReadWriteByteArrayView { } private: - DISALLOW_ASSIGNMENT_OPERATOR(ReadWriteByteArrayView); + // Default copy constructor and assignment operator are used for using this class with STL + // containers. - uint8_t *const mPtr; - const size_t mSize; + // These members cannot be const to have the assignment operator. + uint8_t *mPtr; + size_t mSize; }; } // namespace latinime |