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

loplugin:stringconstant: adapt to improved OUStringLiteral1 (vcl)

Change-Id: Ic04f33413713b592c10ebf27c1e3460a44e3794f
üst e29b6be3
......@@ -422,11 +422,11 @@ IMPL_LINK_NOARG_TYPED(ComboBox::Impl, ImplSelectHdl, LinkParamNone*, void)
if ( !aSelInText.count( nP ) )
{
if (!aText.isEmpty() && (aText[aText.getLength()-1] != m_cMultiSep))
aText += OUString(m_cMultiSep);
aText += OUStringLiteral1(m_cMultiSep);
if ( !aText.isEmpty() )
aText += " "; // slightly loosen
aText += m_pImplLB->GetEntryList()->GetEntryText( nP );
aText += OUString(m_cMultiSep);
aText += OUStringLiteral1(m_cMultiSep);
}
}
aText = comphelper::string::stripEnd( aText, m_cMultiSep );
......
......@@ -2330,7 +2330,7 @@ OUString TextFilter::filter(const OUString &rText)
OUString sTemp(rText);
for (sal_Int32 i = 0; i < sForbiddenChars.getLength(); ++i)
{
sTemp = sTemp.replaceAll(OUString(sForbiddenChars[i]), "");
sTemp = sTemp.replaceAll(OUStringLiteral1(sForbiddenChars[i]), "");
}
return sTemp;
}
......
......@@ -117,7 +117,7 @@ namespace vcl
if ( ( c >= 32 ) && ( c != 127 ) && !_keyEvent.GetKeyCode().IsMod2() )
{
m_pData->sCurrentSearchString += OUString(c);
m_pData->sCurrentSearchString += OUStringLiteral1(c);
OSL_TRACE( "QuickSelectionEngine::HandleKeyEvent: searching for %s", OUStringToOString(m_pData->sCurrentSearchString, RTL_TEXTENCODING_UTF8).getStr() );
if ( m_pData->sCurrentSearchString.getLength() == 1 )
......
......@@ -7715,7 +7715,7 @@ static void escapeStringXML( const OUString& rStr, OUString &rValue)
rValue += "&quot;";
break;
default:
rValue += OUString( *pUni );
rValue += OUStringLiteral1( *pUni );
break;
}
}
......
......@@ -881,7 +881,7 @@ void OutputDevice::DrawText( const Point& rStartPt, const OUString& rStr,
{
pVector->push_back( *it );
if( pDisplayText )
*pDisplayText += OUString(rStr[ nIndex ]);
*pDisplayText += OUStringLiteral1(rStr[ nIndex ]);
bInserted = true;
}
}
......@@ -2043,7 +2043,7 @@ OUString OutputDevice::ImplGetEllipsisString( const OutputDevice& rTargetDevice,
}
if ( aStr.isEmpty() && (nStyle & DrawTextFlags::Clip) )
aStr += OUString(rOrigStr[ 0 ]);
aStr += OUStringLiteral1(rOrigStr[ 0 ]);
}
else if ( nStyle & DrawTextFlags::PathEllipsis )
{
......
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