[Libreoffice-commits] core.git: compilerplugins/clang
Stephan Bergmann
sbergman at redhat.com
Mon Jan 16 09:26:38 UTC 2017
compilerplugins/clang/salbool.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 0f4f5621d194c9221b55bb4a20a251a0bb497d69
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Jan 16 10:26:03 2017 +0100
Use compat::isLookupContext
Change-Id: I5b4523929f971d0345f112ba4f5faff1181cee2b
diff --git a/compilerplugins/clang/salbool.cxx b/compilerplugins/clang/salbool.cxx
index bdb56ea..a17f112 100644
--- a/compilerplugins/clang/salbool.cxx
+++ b/compilerplugins/clang/salbool.cxx
@@ -108,7 +108,7 @@ BoolOverloadKind isBoolOverloadOf(
// encounter in practice:
bool hasBoolOverload(FunctionDecl const * decl, bool mustBeDeleted) {
auto ctx = decl->getDeclContext();
- if (!ctx->isLookupContext()) {
+ if (!compat::isLookupContext(*ctx)) {
return false;
}
auto res = ctx->lookup(decl->getDeclName());
More information about the Libreoffice-commits
mailing list