summaryrefslogtreecommitdiff
path: root/desktop
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 /desktop
parent1aa69bd5d4bdc8513892fb88760312fee52c310b (diff)
fix "cppcheck:stlIfStrFind"
in commit 5c1bb338ef0d781648d5b33ffc9d64c2be6d9926, compare does not do a startswith Change-Id: If518b3f6880848a5b5463c09fb73974d972010fd
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 8ce8443a50fd..29a9bfe61345 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -356,7 +356,7 @@ struct RectangleAndPart
static RectangleAndPart Create(const std::string& rPayload)
{
RectangleAndPart aRet;
- if (rPayload.compare("EMPTY") == 0) // payload starts with "EMPTY"
+ if (rPayload.rfind("EMPTY") == 0) // payload starts with "EMPTY"
{
if (comphelper::LibreOfficeKit::isPartInInvalidation())
aRet.m_nPart = std::stol(rPayload.substr(6));