[Libreoffice-commits] core.git: compilerplugins/clang

Stephan Bergmann sbergman at redhat.com
Thu Feb 2 10:49:58 UTC 2017


 compilerplugins/clang/stringconstant.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6abbbe70150f4157dd3a858273a39603027ddcba
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Feb 2 11:49:20 2017 +0100

    Fix copy/move ctor check
    
    Change-Id: I2993d5809204098e29a7560d666fa1aafb024a89

diff --git a/compilerplugins/clang/stringconstant.cxx b/compilerplugins/clang/stringconstant.cxx
index 2a1302e..5bf4392 100644
--- a/compilerplugins/clang/stringconstant.cxx
+++ b/compilerplugins/clang/stringconstant.cxx
@@ -67,7 +67,7 @@ bool hasOverloads(FunctionDecl const * decl, unsigned arguments) {
             && f->getNumParams() >= arguments)
         {
             auto consDecl = dyn_cast<CXXConstructorDecl>(f);
-            if (consDecl && consDecl->isCopyConstructor()) {
+            if (consDecl && consDecl->isCopyOrMoveConstructor()) {
                 continue;
             }
             ++n;


More information about the Libreoffice-commits mailing list