From 6957ce7df6e233f5d736eaa7c95738c822128064 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Fri, 17 Jan 2020 14:50:56 +0900 Subject: [PATCH] Fix issue detected by static analysis tool Change-Id: Ic109159b91c9b39f8a7093facee91f30e2195bd8 Signed-off-by: Jihoon Kim --- ism/src/scim_frontend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ism/src/scim_frontend.cpp b/ism/src/scim_frontend.cpp index 1ad0643..ce4d90c 100644 --- a/ism/src/scim_frontend.cpp +++ b/ism/src/scim_frontend.cpp @@ -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 (); -- 2.7.4