diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-06-26 16:16:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-06-27 13:10:44 +0200 |
commit | e266d448f45348f27f8291ea5d0542747d7c8168 (patch) | |
tree | 0d6d14e94d9bf25aeeb4ef21630ee72c10681645 /test | |
parent | 05c6cdb144d1732ca51d463845fa6ddef7c08265 (diff) |
loplugin:stringstatic look for more strings
that can be initialised at compile-time instead of runtime
Change-Id: I08d516fdc13a3a79f93c079f89ac44cbc7a1ed71
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153620
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'test')
-rw-r--r-- | test/source/screenshot_test.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/source/screenshot_test.cxx b/test/source/screenshot_test.cxx index e699072f37ac..8246db7f8492 100644 --- a/test/source/screenshot_test.cxx +++ b/test/source/screenshot_test.cxx @@ -247,7 +247,7 @@ void ScreenshotTest::processDialogBatchFile(std::u16string_view rFile) const OUString aURL(aDirectories.getURLFromSrc(rFile)); SvFileStream aStream(aURL, StreamMode::READ); OString aNextUIFile; - const OString aComment("#"); + static constexpr OStringLiteral aComment("#"); while (aStream.ReadLine(aNextUIFile)) { |