summaryrefslogtreecommitdiff
path: root/libreofficekit
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-10-24 10:56:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-24 10:56:08 +0200
commit610f59651563205564a0f4818b5c1d347ca02132 (patch)
treea047a01a7357971713478285ee949f58a346eb8e /libreofficekit
parent1aa69bd5d4bdc8513892fb88760312fee52c310b (diff)
fix "cppcheck:stlIfStrFind"
in commit 5c1bb338ef0d781648d5b33ffc9d64c2be6d9926, compare does not do a startswith Change-Id: If518b3f6880848a5b5463c09fb73974d972010fd
Diffstat (limited to 'libreofficekit')
-rw-r--r--libreofficekit/source/gtk/lokdocview.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index fd67264f866e..8f23995dbfcf 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -1136,7 +1136,7 @@ callback (gpointer pData)
{
case LOK_CALLBACK_INVALIDATE_TILES:
{
- if (pCallback->m_aPayload.compare("EMPTY") != 0) // payload doesn't start with "EMPTY"
+ if (pCallback->m_aPayload.rfind("EMPTY") != 0) // payload doesn't start with "EMPTY"
{
GdkRectangle aRectangle = payloadToRectangle(pDocView, pCallback->m_aPayload.c_str());
setTilesInvalid(pDocView, aRectangle);