diff options
Diffstat (limited to 'o3tl')
-rw-r--r-- | o3tl/qa/test-string_view.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/o3tl/qa/test-string_view.cxx b/o3tl/qa/test-string_view.cxx index 80f9bd9e13fd..0cc753795df2 100644 --- a/o3tl/qa/test-string_view.cxx +++ b/o3tl/qa/test-string_view.cxx @@ -603,7 +603,9 @@ private: void testGetToken() { { - OUString suTokenStr; + // Explicit initialization of suTokenStr to avoid an unhelpful loplugin:stringviewvar; + // it is the o3tl::getToken overload taking OUString that we want to test here: + OUString suTokenStr(""); sal_Int32 nIndex = 0; do { |