From c5a29fa864b5d7589fbbe8ddc96f2c7a0c7cee28 Mon Sep 17 00:00:00 2001 From: Ken Wakasa Date: Thu, 2 May 2013 14:19:05 +0000 Subject: [PATCH] Revert "Fix exact match profanity" This reverts commit df2eae6e69948e99618a28d087b847c70582efd8 Change-Id: I42635cc09ad3ea4c177d02e0b7607fb7aa78506c --- native/jni/src/suggest/core/suggest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/native/jni/src/suggest/core/suggest.cpp b/native/jni/src/suggest/core/suggest.cpp index 0ff7454b6..3221dee9c 100644 --- a/native/jni/src/suggest/core/suggest.cpp +++ b/native/jni/src/suggest/core/suggest.cpp @@ -164,8 +164,8 @@ int Suggest::outputSuggestions(DicTraverseSession *traverseSession, int *frequen const bool isPossiblyOffensiveWord = terminalDicNode->getProbability() <= 0; const bool isExactMatch = terminalDicNode->isExactMatch(); const int outputTypeFlags = - (isPossiblyOffensiveWord ? Dictionary::KIND_FLAG_POSSIBLY_OFFENSIVE : 0) - | (isExactMatch ? Dictionary::KIND_FLAG_EXACT_MATCH : 0); + isPossiblyOffensiveWord ? Dictionary::KIND_FLAG_POSSIBLY_OFFENSIVE : 0 + | isExactMatch ? Dictionary::KIND_FLAG_EXACT_MATCH : 0; // Entries that are blacklisted or do not represent a word should not be output. const bool isValidWord = !terminalAttributes.isBlacklistedOrNotAWord();