cppcheck:stlIfStrFind
"Inefficient usage of string::find() in condition; string::compare() would be faster." Change-Id: I90403b1d05eff6499c10be33068e5fd4fed30b62 Reviewed-on: https://gerrit.libreoffice.org/19966 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
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->find("class com::sun::star::uno::Sequence") == 0)
|
||||
|| name->compare("class com::sun::star::uno::Sequence") == 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user