Fix issue detected by static analysis tool 77/139077/2 accepted/tizen/unified/20170720.062154 submit/tizen/20170720.014256
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 17 Jul 2017 07:33:44 +0000 (16:33 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Mon, 17 Jul 2017 10:45:07 +0000 (10:45 +0000)
A part of conditional expression is always true:
GT_SEARCH_ONLY_LONGER. scim_generic_table.cpp 1884

Change-Id: Ibadf55bee273dcdd11dd5e35d6eadf53c3b87524
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/scim_generic_table.cpp

index fd991ff..cf3c131 100755 (executable)
@@ -1881,7 +1881,7 @@ GenericTableContent::search (const String &key, int search_type) const
         }
 
         // It's multi wildcard key and only search longer
-        else if (nkeys.size () > 1 && GT_SEARCH_ONLY_LONGER) {
+        else if (nkeys.size () > 1) {
             for (size_t i = 0; i < nkeys.size (); ++i)
                 if (nkeys [i].length () < m_max_key_length)
                     nkeys [i].push_back (m_single_wildcard_char);