diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-11-08 19:39:25 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-11-08 21:22:29 +0100 |
commit | 1b66d0141c68e2fd1100a34274d7e0d292cf26d9 (patch) | |
tree | 3dae5d8fe5047df4a3cad829f1caebf6639c1e83 | |
parent | b392d126335be68e0b601df39bfb840c4080d606 (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.cxx | 2 |
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) { |