[Libreoffice-commits] core.git: libreofficekit/source
Mihai Varga
mihai.mv13 at gmail.com
Mon Oct 5 08:09:16 PDT 2015
libreofficekit/source/gtk/lokdocview.cxx | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
New commits:
commit a6ef5718475ba35b52d9de474741b640316502eb
Author: Mihai Varga <mihai.mv13 at gmail.com>
Date: Mon Oct 5 18:07:28 2015 +0300
LOK: fixed duplicated switch case values
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index 2aa1916..d5eab90 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;
More information about the Libreoffice-commits
mailing list