tdf#96042: 'std::string::find("something") == 0' means "startsWith()".

This should fix a regression from 3bdd176731,
apparently the cppcheck's advice is misleading.

Change-Id: I427ecaa1eb3c9841cb6112997b9b51feda4583d0
This commit is contained in:
Jan Holesovsky
2015-12-08 12:07:49 +01:00
parent de7018f755
commit 4c4999d944
3 changed files with 4 additions and 4 deletions

View File

@@ -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;
}