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

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Fri Nov 8 20:23:40 UTC 2019


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

New commits:
commit 1b66d0141c68e2fd1100a34274d7e0d292cf26d9
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Fri Nov 8 19:39:25 2019 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Fri Nov 8 21:22:29 2019 +0100

    Use more efficient NamedDecl::getName
    
    Change-Id: I764b254180809c7ee020d5115e4b9e50e0227c09
    Reviewed-on: https://gerrit.libreoffice.org/82321
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/compilerplugins/clang/salbool.cxx b/compilerplugins/clang/salbool.cxx
index 3aba59124e2b..fdadfc6b795a 100644
--- a/compilerplugins/clang/salbool.cxx
+++ b/compilerplugins/clang/salbool.cxx
@@ -23,7 +23,7 @@ namespace {
 
 bool isSalBool(QualType type) {
     TypedefType const * t = type->getAs<TypedefType>();
-    return t != nullptr && t->getDecl()->getNameAsString() == "sal_Bool";
+    return t != nullptr && t->getDecl()->getName() == "sal_Bool";
 }
 
 bool isSalBoolArray(QualType type) {


More information about the Libreoffice-commits mailing list