summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/passstuffbyref.cxx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-12-08 12:07:49 +0100
committerJan Holesovsky <kendy@collabora.com>2015-12-08 12:12:53 +0100
commit4c4999d944bbf8a34f8a320b8de6f4a325bd5d97 (patch)
tree346d254695a1650724cb0492ef2bbced17b35afc /compilerplugins/clang/passstuffbyref.cxx
parentde7018f755af0b2372c0e261f53d57de6cf77c38 (diff)
tdf#96042: 'std::string::find("something") == 0' means "startsWith()".
This should fix a regression from 3bdd176731c351638f541a37b94094124f3c9f52, apparently the cppcheck's advice is misleading. Change-Id: I427ecaa1eb3c9841cb6112997b9b51feda4583d0
Diffstat (limited to 'compilerplugins/clang/passstuffbyref.cxx')
-rw-r--r--compilerplugins/clang/passstuffbyref.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/passstuffbyref.cxx b/compilerplugins/clang/passstuffbyref.cxx
index 673b72b32f8e..f2e66f710986 100644
--- a/compilerplugins/clang/passstuffbyref.cxx
+++ b/compilerplugins/clang/passstuffbyref.cxx
@@ -103,7 +103,7 @@ bool PassStuffByRef::isFat(QualType type, std::string * name) {
}
*name = type.getUnqualifiedType().getCanonicalType().getAsString();
if (*name == "class rtl::OUString" || *name == "class rtl::OString"
- || name->compare("class com::sun::star::uno::Sequence") == 0)
+ || name->compare(0, 35, "class com::sun::star::uno::Sequence") == 0)
{
return true;
}