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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user