summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/test/stringliteralvar.cxx
diff options
context:
space:
mode:
authorjsala <javier.salamanca.munoz@gmail.com>2022-06-21 21:25:50 +0200
committerHossein <hossein@libreoffice.org>2022-09-04 20:04:23 +0200
commit9e7e95a57b7c16941d9fdc59f806c1f9e4263379 (patch)
tree2311a80a98bd31b703708d946a5905d980835bca /compilerplugins/clang/test/stringliteralvar.cxx
parent42d197ef301db68e56f7e45b6e36ace5fae04b4d (diff)
tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro
Change associated for by std::find_if in sqlbison.y Also change some integer by std::size_t Change-Id: I0d2100fbd7c22729da6ce0462c6cc093e0767fb4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136263 Tested-by: Jenkins Reviewed-by: Hossein <hossein@libreoffice.org>
Diffstat (limited to 'compilerplugins/clang/test/stringliteralvar.cxx')
-rw-r--r--compilerplugins/clang/test/stringliteralvar.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/test/stringliteralvar.cxx b/compilerplugins/clang/test/stringliteralvar.cxx
index f04e54756284..a73f1c51dbd9 100644
--- a/compilerplugins/clang/test/stringliteralvar.cxx
+++ b/compilerplugins/clang/test/stringliteralvar.cxx
@@ -84,7 +84,7 @@ void f9()
// expected-error-re@+1 {{change type of variable 'literal' from constant character array ('const sal_Unicode{{ ?}}[3]'{{( \(aka 'const char16_t\[3\]'\))?}}) to OUStringLiteral [loplugin:stringliteralvar]}}
static sal_Unicode const literal[] = { 'f', 'o', 'o' };
// expected-note-re@+1 {{first passed into a '{{(rtl::)?}}OUString' constructor here [loplugin:stringliteralvar]}}
- f(OUString(literal, SAL_N_ELEMENTS(literal)));
+ f(OUString(literal, std::size(literal)));
}
void f10()