aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src
diff options
context:
space:
mode:
authorBen Cheng <bccheng@google.com>2013-04-03 16:59:29 -0700
committerBen Cheng <bccheng@google.com>2013-04-04 11:26:04 -0700
commitc2fbd7c64d97743723d4d4da3f8dacf797ad0339 (patch)
tree8c18004360932af23acde5336008eefe4ac22ad4 /native/jni/src
parent4cdb7ccb325db33fa812855b6ea6de2533cdb6be (diff)
downloadlatinime-c2fbd7c64d97743723d4d4da3f8dacf797ad0339.tar.gz
latinime-c2fbd7c64d97743723d4d4da3f8dacf797ad0339.tar.xz
latinime-c2fbd7c64d97743723d4d4da3f8dacf797ad0339.zip
Force inlining Correction::isSingleQuote
Also, only apply -Winline with GCC 4.6. There are some copy constructors that GCC 4.7/4.8 fail to inline. Change-Id: I97906045224e89377e8ea6add07a79fa088648af
Diffstat (limited to 'native/jni/src')
-rw-r--r--native/jni/src/correction.h2
1 files changed, 1 insertions, 1 deletions
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);
}