From 40dde4385cd913ac08292ad3be28bf17de9d296c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 10 May 2024 13:19:35 +0200 Subject: loplugin:ostr in vcl Change-Id: I5b6ee5bda0c5ff69d297f7f8e87d4c3f3d21791c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167470 Reviewed-by: Noel Grandin Tested-by: Jenkins --- vcl/source/window/keycod.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl/source/window/keycod.cxx') diff --git a/vcl/source/window/keycod.cxx b/vcl/source/window/keycod.cxx index cc3fca5802ea..31bf70f08d57 100644 --- a/vcl/source/window/keycod.cxx +++ b/vcl/source/window/keycod.cxx @@ -66,7 +66,7 @@ vcl::KeyCode::KeyCode( KeyFuncType eFunction ) OUString vcl::KeyCode::GetName() const { vcl::Window* pWindow = ImplGetDefaultWindow(); - return pWindow ? pWindow->ImplGetFrame()->GetKeyName( GetFullCode() ) : ""; + return pWindow ? pWindow->ImplGetFrame()->GetKeyName( GetFullCode() ) : u""_ustr; } KeyFuncType vcl::KeyCode::GetFunction() const -- cgit