Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
keyboard
LatinIME
Commits
65534ffc
Commit
65534ffc
authored
11 years ago
by
Ben Cheng
Committed by
Android Git Automerger
11 years ago
Browse files
Options
Downloads
Plain Diff
am
d0c383e1
: am
5a4949c2
: Merge "Force inlining Correction::isSingleQuote" into jb-mr2-dev
* commit '
d0c383e1
': Force inlining Correction::isSingleQuote
parents
f3633e9b
d0c383e1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
native/jni/Android.mk
+1
-1
1 addition, 1 deletion
native/jni/Android.mk
native/jni/src/correction.h
+1
-1
1 addition, 1 deletion
native/jni/src/correction.h
with
2 additions
and
2 deletions
native/jni/Android.mk
+
1
−
1
View file @
65534ffc
...
...
@@ -37,7 +37,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)
if
n
eq
($(TARGET_GCC_VERSION), 4.
7
)
ifeq
($(TARGET_GCC_VERSION), 4.
6
)
LOCAL_CFLAGS
+=
-Winline
endif
# TARGET_GCC_VERSION
endif
# TARGET_ARCH
...
...
This diff is collapsed.
Click to expand it.
native/jni/src/correction.h
+
1
−
1
View file @
65534ffc
...
...
@@ -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
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment