summaryrefslogtreecommitdiff
path: root/libreofficekit
diff options
context:
space:
mode:
authorMihai Varga <mihai.mv13@gmail.com>2015-10-05 18:07:28 +0300
committerMihai Varga <mihai.mv13@gmail.com>2015-10-05 18:08:46 +0300
commita6ef5718475ba35b52d9de474741b640316502eb (patch)
tree432883ce6bdffe994a2f90025a5123ac601beba8 /libreofficekit
parentcc7556740640e1b3f8730b939e21eaa882abc031 (diff)
LOK: fixed duplicated switch case values
Diffstat (limited to 'libreofficekit')
-rw-r--r--libreofficekit/source/gtk/lokdocview.cxx11
1 files changed, 1 insertions, 10 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index 2aa1916f409a..d5eab90480ac 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -661,11 +661,7 @@ callback (gpointer pData)
case LOK_CALLBACK_SEARCH_RESULT_COUNT:
{
size_t nPos = pCallback->m_aPayload.find_first_of(";");
- int nSearchResultCount = std::stoi(pCallback->m_aPayload.substr(0, nPos));
- if (nSearchResultCount == 0)
- {
- searchNotFound(pDocView, pCallback->m_aPayload.substr(nPos + 1));
- }
+ searchResultCount(pDocView, pCallback->m_aPayload.substr(0, nPos));
}
break;
case LOK_CALLBACK_DOCUMENT_SIZE_CHANGED:
@@ -683,11 +679,6 @@ callback (gpointer pData)
setPart(pDocView, pCallback->m_aPayload);
}
break;
- case LOK_CALLBACK_SEARCH_RESULT_COUNT:
- {
- searchResultCount(pDocView, pCallback->m_aPayload);
- }
- break;
default:
g_assert(false);
break;