diff --git a/compilerplugins/clang/stringconstant.cxx b/compilerplugins/clang/stringconstant.cxx index 7522641ef0b7..7cc6d9a372c5 100644 --- a/compilerplugins/clang/stringconstant.cxx +++ b/compilerplugins/clang/stringconstant.cxx @@ -357,6 +357,12 @@ bool StringConstant::VisitCallExpr(CallExpr const * expr) { handleOUStringCtor(expr, 1, qname); return true; } + if (qname == "rtl::OUString::operator+=" && fdecl->getNumParams() == 1) { + handleOUStringCtor( + expr, dyn_cast(expr) == nullptr ? 0 : 1, + qname); + return true; + } if (qname == "rtl::OUString::equals" && fdecl->getNumParams() == 1) { unsigned n; bool non;