summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2020-01-26 10:12:27 +0100
committerJulien Nabet <serval2412@yahoo.fr>2020-01-26 11:31:25 +0100
commit6b369969d40b93184cfa16ae93572466debf974e (patch)
tree2af416b457f8138b3dc36206d766f1fefeba7ae1 /compilerplugins
parent91dd3e8d903eb388e709ec45163a375590150773 (diff)
cppcheck: shadowFunction in compilerplugins/dyncastvisibility
Change-Id: I978c0c28814cef4c98a90eb7cac278a0593db79f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87435 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/dyncastvisibility.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/compilerplugins/clang/dyncastvisibility.cxx b/compilerplugins/clang/dyncastvisibility.cxx
index 0899fb8d18d0..788506ee2250 100644
--- a/compilerplugins/clang/dyncastvisibility.cxx
+++ b/compilerplugins/clang/dyncastvisibility.cxx
@@ -33,9 +33,9 @@ Visibility getTypeVisibility(CXXRecordDecl const * decl) {
{
return *opt;
}
- auto const vis = decl->getVisibility();
- return vis == DefaultVisibility && decl->isInAnonymousNamespace()
- ? HiddenVisibility : vis;
+ auto const visi = decl->getVisibility();
+ return visi == DefaultVisibility && decl->isInAnonymousNamespace()
+ ? HiddenVisibility : visi;
}
// Check whether 'decl' is derived from 'base', gathering any 'bases' between