compilerplugins/clang/test/stringliteralvar.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 85279475eb9f59119ccfd81caad1afb801eb49bc Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Thu Sep 8 13:59:17 2022 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Thu Sep 8 15:47:42 2022 +0200 Clean up some #includes ...after 9e7e95a57b7c16941d9fdc59f806c1f9e4263379 "tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macro" (and somewhat pedantically use the canonical <iterator> for std::size, even though the existing <vector> defines it, too) Change-Id: Iacf0a0619b496bfe7c6abb0a812b6a1b3eed40c2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139653 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/compilerplugins/clang/test/stringliteralvar.cxx b/compilerplugins/clang/test/stringliteralvar.cxx index a73f1c51dbd9..3c0eaaccae04 100644 --- a/compilerplugins/clang/test/stringliteralvar.cxx +++ b/compilerplugins/clang/test/stringliteralvar.cxx @@ -9,10 +9,10 @@ #include <sal/config.h> +#include <iterator> #include <vector> #include <rtl/ustring.hxx> -#include <sal/macros.h> // expected-error-re@+1 {{change type of variable 'literal1' from constant character array ('const char{{ ?}}[4]') to OStringLiteral [loplugin:stringliteralvar]}} char const literal1[] = "foo";