aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/utils/byte_array_view.h
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2014-08-18 22:46:10 +0900
committerKeisuke Kuroyanagi <ksk@google.com>2014-08-18 22:46:10 +0900
commit1f6e52ef029e7807b6998d397556fac30b2b7ff4 (patch)
treeaafa5712b982c19b6ebc445e222f78cc7a508728 /native/jni/src/utils/byte_array_view.h
parent4fbb2148ee149ef647f3f43c615911455228f3af (diff)
downloadlatinime-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.h8
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