Kaydet (Commit) b8f0442f authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)

Change-Id: I7cf9fe48cf1c38a4327290e9393a5f88f3d4a97d
üst 4ae8cd2f
......@@ -212,18 +212,15 @@ css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance(
if ( desktop == "GNOME" ) {
backend = createBackend(
context,
OUString(
"com.sun.star.configuration.backend.GconfBackend"));
"com.sun.star.configuration.backend.GconfBackend");
} else if ( desktop == "KDE" ) {
backend = createBackend(
context,
OUString(
"com.sun.star.configuration.backend.KDEBackend"));
"com.sun.star.configuration.backend.KDEBackend");
} else if ( desktop == "KDE4" ) {
backend = createBackend(
context,
OUString(
"com.sun.star.configuration.backend.KDE4Backend"));
"com.sun.star.configuration.backend.KDE4Backend");
}
return backend.is()
? backend : static_cast< cppu::OWeakObject * >(new Default);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment