diff options
author | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-04-08 08:05:17 +0200 |
---|---|---|
committer | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-04-08 09:50:46 +0200 |
commit | f1697d2b1e6b3ac63946070cc720234dc68efbe9 (patch) | |
tree | 3620bca36bf082aae0ead1a971c27b5c66457f28 /compilerplugins | |
parent | a57ade9be3aa03634933e767eab5e8fb640760ca (diff) |
-Werror,-Wunused-but-set-variable
...ever since the code got introduced in
4f5b3e4bd53d6d61df1f65f496f7bc8dc525c8a1 "In O[U]StringBuffer, make string_view
params replacements for OUString ones"
Change-Id: If2032db027f45c60f7c92b796a0a10d23f26b6e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165881
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/stringconstant.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/stringconstant.cxx b/compilerplugins/clang/stringconstant.cxx index 134be1940b82..344125dd4df0 100644 --- a/compilerplugins/clang/stringconstant.cxx +++ b/compilerplugins/clang/stringconstant.cxx @@ -96,7 +96,7 @@ CXXConstructExpr const * lookForCXXConstructExpr(Expr const * expr) { } if (auto const e = dyn_cast<CXXMemberCallExpr>(expr)) { // Look through OString::operator std::string_view: - if (auto const d = dyn_cast_or_null<CXXConversionDecl>(e->getCalleeDecl())) { + if (isa_and_nonnull<CXXConversionDecl>(e->getCalleeDecl())) { return lookForCXXConstructExpr(e->getImplicitObjectArgument()->IgnoreParenImpCasts()); } } |