summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-03-15 13:46:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-03-15 13:46:53 +0200
commitc8bad5e896801e6775fd80ea246893a77f534d60 (patch)
tree7414046bca24d818540a4685da6ff1e61db39b06 /desktop
parent6c46fdd75de8cec4f62f9fed02212a2d1e0b71b5 (diff)
loplugin:stringconstant
/home/noel/libo/desktop/source/lib/init.cxx:3571:22: error: rewrite call of 'rtl::operator==' with empty string constant argument as call of 'rtl::OUString::isEmpty' [loplugin:stringconstant] if (aHeaders == "") Change-Id: If0d8c411c6dd563622a855e209c0a5692c222abe
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 160ac0d68749..09b092d8c21b 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -3568,7 +3568,7 @@ static char* doc_getCommandValues(LibreOfficeKitDocument* pThis, const char* pCo
}
OUString aHeaders = pDoc->getRowColumnHeaders(aRectangle);
- if (aHeaders == "")
+ if (aHeaders.isEmpty())
return nullptr;
OString aString = OUStringToOString(aHeaders, RTL_TEXTENCODING_UTF8);