Fix issue detected by static analysis tool 67/222667/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Fri, 17 Jan 2020 05:50:56 +0000 (14:50 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 20 Jan 2020 09:19:37 +0000 (18:19 +0900)
Change-Id: Ic109159b91c9b39f8a7093facee91f30e2195bd8
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
ism/src/scim_frontend.cpp

index 1ad0643..ce4d90c 100644 (file)
@@ -487,7 +487,7 @@ FrontEndBase::new_instance (const ConfigPointer &config, const String &sf_uuid,
         m_impl->m_instance_ref_count [si->get_id ()] = 1;
         m_impl->attach_instance (si);
     } else {
-        m_impl->m_instance_ref_count [si->get_id ()] = ++m_impl->m_instance_ref_count [si->get_id ()];
+        m_impl->m_instance_ref_count [si->get_id ()]++;
     }
 
     return si->get_id ();