aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/utils/byte_array_view.h
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2014-08-19 02:53:53 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-08-19 02:53:53 +0000
commitb3c56c9441a3a30965c717f36788e2b5511825c9 (patch)
tree37b778eaf2d4e2d140ae16bc6847e994305527e3 /native/jni/src/utils/byte_array_view.h
parent47c80605e66c9f56b30601ad5c59ffdb60636ee8 (diff)
parentbfcd5efd50d3ea14fa7da9721dcea08532d99ea4 (diff)
downloadlatinime-b3c56c9441a3a30965c717f36788e2b5511825c9.tar.gz
latinime-b3c56c9441a3a30965c717f36788e2b5511825c9.tar.xz
latinime-b3c56c9441a3a30965c717f36788e2b5511825c9.zip
am bfcd5efd: Merge "Use byte array view in ver4 dict contents."
* commit 'bfcd5efd50d3ea14fa7da9721dcea08532d99ea4': Use byte array view in ver4 dict contents.
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