loplugin:stringconstant: handle OUString+=OUString(literal)

Change-Id: I55363639900450c9780dd187805ce0500f68a2f4
This commit is contained in:
Stephan Bergmann
2015-06-26 13:52:42 +02:00
parent d496ad9beb
commit a212bd0e36

View File

@@ -1095,9 +1095,8 @@ static uno_Environment * initDefaultEnvironment(
OUString envPurpose = cppu::EnvDcp::getPurpose(rEnvDcp);
if (!envPurpose.isEmpty())
{
rtl::OUString libStem = envPurpose.copy(envPurpose.lastIndexOf(':') + 1);
libStem += rtl::OUString("_uno_uno");
rtl::OUString libStem(
envPurpose.copy(envPurpose.lastIndexOf(':') + 1) + "_uno_uno");
if(!loadEnv(libStem, pEnv))
{
pEnv->release(pEnv);