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

loplugin:stringconstant: adapt to improved OUStringLiteral1 (svx)

Change-Id: I4d95f15896327101c1c19abc00edcecd7fee26a2
üst 4d21c085
......@@ -285,7 +285,7 @@ void SvxPageWindow::DrawPage(vcl::RenderContext& rRenderContext, const Point& rO
aMove.X() = 0;
break;
}
sText += OUString(cArrow);
sText += OUStringLiteral1(cArrow);
for (sal_Int32 i = 0; i < sText.getLength(); i++)
{
OUString sDraw(sText.copy(i,1));
......
......@@ -204,17 +204,13 @@ OUString GetReducedString( const INetURLObject& rURL, sal_Int32 nMaxLen )
if (nPathPrefixLen >= 0)
{
aReduced = aPath.copy(0, nPathPrefixLen);
aReduced += "...";
aReduced += OUString(aDelimiter);
aReduced += aName;
aReduced = aPath.copy(0, nPathPrefixLen) + "..."
+ OUStringLiteral1(aDelimiter) + aName;
}
else
{
aReduced += "...";
aReduced += OUString(aDelimiter);
aReduced += "...";
aReduced += aName.copy( aName.getLength() - (nMaxLen - 7) );
aReduced += "..." + OUStringLiteral1(aDelimiter) + "..."
+ aName.copy( aName.getLength() - (nMaxLen - 7) );
}
}
else
......
......@@ -78,7 +78,7 @@ bool SvxRotateModeItem::GetPresentation(
SAL_FALLTHROUGH; // break; // FALL THROUGH!!!
case SFX_ITEM_PRESENTATION_NAMELESS:
rText += OUString( sal_Unicode(GetValue()) );
rText += OUStringLiteral1( GetValue() );
return true;
break;
default: ;//prevent warning
......
......@@ -73,7 +73,7 @@ OUString SvxPosSizeStatusBarControl::GetMetricStr_Impl( long nVal )
if( FUNIT_NONE != eOutUnit )
{
sMetric += OUString(cSep);
sMetric += OUStringLiteral1(cSep);
sal_Int64 nFract = nConvVal % 100;
if ( nFract < 0 )
......
......@@ -356,10 +356,10 @@ IMPL_LINK_TYPED(GraphicExporter, CalcFieldValueHdl, EditFieldInfo*, pInfo, void)
switch(mpDoc->GetPageNumType())
{
case SVX_CHARS_UPPER_LETTER:
aPageNumValue += OUString( (sal_Unicode)(char)((mnPageNumber - 1) % 26 + 'A') );
aPageNumValue += OUStringLiteral1( (mnPageNumber - 1) % 26 + 'A' );
break;
case SVX_CHARS_LOWER_LETTER:
aPageNumValue += OUString( (sal_Unicode)(char)((mnPageNumber - 1) % 26 + 'a') );
aPageNumValue += OUStringLiteral1( (mnPageNumber - 1) % 26 + 'a' );
break;
case SVX_ROMAN_UPPER:
bUpper = true;
......
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