summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-11-08 19:39:25 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-11-08 21:22:29 +0100
commit1b66d0141c68e2fd1100a34274d7e0d292cf26d9 (patch)
tree3dae5d8fe5047df4a3cad829f1caebf6639c1e83
parentb392d126335be68e0b601df39bfb840c4080d606 (diff)
Use more efficient NamedDecl::getName
Change-Id: I764b254180809c7ee020d5115e4b9e50e0227c09 Reviewed-on: https://gerrit.libreoffice.org/82321 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--compilerplugins/clang/salbool.cxx2
1 files changed, 1 insertions, 1 deletions
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) {