[Libreoffice-commits] core.git: compilerplugins/clang
Noel Grandin
noel.grandin at collabora.co.uk
Thu Feb 2 09:36:16 UTC 2017
compilerplugins/clang/stringconstant.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 02957bc3b764988d9825c18c31ef1b4d09d57636
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date: Thu Feb 2 11:29:25 2017 +0200
loplugin:stringconstant, this should be a break
after commit dce867e8c4863c969eea3515a988630b74708a43
"loplugin:stringconstant handle calls to constructors with one arg"
Change-Id: Ib572d904a95aa96aab3c799f9b7cfb505fcee5e6
diff --git a/compilerplugins/clang/stringconstant.cxx b/compilerplugins/clang/stringconstant.cxx
index b80701c..2a1302e 100644
--- a/compilerplugins/clang/stringconstant.cxx
+++ b/compilerplugins/clang/stringconstant.cxx
@@ -68,7 +68,7 @@ bool hasOverloads(FunctionDecl const * decl, unsigned arguments) {
{
auto consDecl = dyn_cast<CXXConstructorDecl>(f);
if (consDecl && consDecl->isCopyConstructor()) {
- break;
+ continue;
}
++n;
if (n == 2) {
More information about the Libreoffice-commits
mailing list