aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Cheng <bccheng@google.com>2013-04-04 12:17:12 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-04-04 12:17:12 -0700
commitd0c383e1473c1b302038f4145ba5192fd9af9a5f (patch)
tree02e82bc6156ed2f2e8493e7b869de62a96ca9cd8
parent04915a76b4e9d1a1097de01b5c2ac4df7a979d3f (diff)
parent5a4949c28b594afe983d1c9163bbe0e71d200757 (diff)
downloadlatinime-d0c383e1473c1b302038f4145ba5192fd9af9a5f.tar.gz
latinime-d0c383e1473c1b302038f4145ba5192fd9af9a5f.tar.xz
latinime-d0c383e1473c1b302038f4145ba5192fd9af9a5f.zip
am 5a4949c2: Merge "Force inlining Correction::isSingleQuote" into jb-mr2-dev
* commit '5a4949c28b594afe983d1c9163bbe0e71d200757': Force inlining Correction::isSingleQuote
-rw-r--r--native/jni/Android.mk2
-rw-r--r--native/jni/src/correction.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/native/jni/Android.mk b/native/jni/Android.mk
index 42275d45a..01a8c3392 100644
--- a/native/jni/Android.mk
+++ b/native/jni/Android.mk
@@ -38,7 +38,7 @@ LOCAL_CFLAGS += -Werror -Wall -Wextra -Weffc++ -Wformat=2 -Wcast-qual -Wcast-ali
-Wwrite-strings -Wfloat-equal -Wpointer-arith -Winit-self -Wredundant-decls -Wno-system-headers
ifeq ($(TARGET_ARCH), arm)
-ifneq ($(TARGET_GCC_VERSION), 4.7)
+ifeq ($(TARGET_GCC_VERSION), 4.6)
LOCAL_CFLAGS += -Winline
endif # TARGET_GCC_VERSION
endif # TARGET_ARCH
diff --git a/native/jni/src/correction.h b/native/jni/src/correction.h
index f0d62102f..a9e9b48a6 100644
--- a/native/jni/src/correction.h
+++ b/native/jni/src/correction.h
@@ -307,7 +307,7 @@ inline void Correction::startToTraverseAllNodes() {
mNeedsToTraverseAllNodes = true;
}
-inline bool Correction::isSingleQuote(const int c) {
+AK_FORCE_INLINE bool Correction::isSingleQuote(const int c) {
const int userTypedChar = mProximityInfoState.getPrimaryCodePointAt(mInputIndex);
return (c == KEYCODE_SINGLE_QUOTE && userTypedChar != KEYCODE_SINGLE_QUOTE);
}