string literals in ?: don't get automatically converted to OUString

Technically these two are both const char[8], so gcc/clang keep
the resulting type the same, but msvc always converts to const char*,
even if the same sizes mean this is not required.
This commit is contained in:
Luboš Luňák 2012-03-13 17:01:10 +01:00
parent badbf0c925
commit 9e6b086c62

View file

@ -438,7 +438,9 @@ OUString SmOoxmlImport::handleLimLowUpp( LimLowUpp_t limlowupp )
return e.copy( 0, e.getLength() - 2 ) + lim + "}";
if( limlowupp == LimLow && e.endsWith( " underbrace { }" ))
return e.copy( 0, e.getLength() - 2 ) + lim + "}";
return e + ( limlowupp == LimLow ? " csub {" : " csup {" ) + lim + "}";
return e
+ ( limlowupp == LimLow ? OUString( " csub {" ) : OUString( " csup {" ))
+ lim + "}";
}
OUString SmOoxmlImport::handleGroupChr()