coverity#1371289 Missing move assignment operator
Change-Id: Idc26faf904f0c89cfd66f53bb311d8ce9b41eaab
This commit is contained in:
@@ -1198,7 +1198,7 @@ OUString ToggleUnicodeCodepoint::StringToReplace()
|
||||
//if U+ notation used, strip off all extra chars added not in U+ notation
|
||||
if( nUPlus != -1 )
|
||||
{
|
||||
maInput = maInput.copy(nUPlus);
|
||||
maInput.remove(0, nUPlus);
|
||||
sIn = maInput.copy(2).toString();
|
||||
nUPlus = sIn.indexOf("U+");
|
||||
}
|
||||
|
@@ -198,7 +198,7 @@ OUString xdg_user_dir_lookup (const char *type)
|
||||
continue;
|
||||
if (relative)
|
||||
{
|
||||
aUserDirBuf = OUStringBuffer(aHomeDirURL + "/");
|
||||
aUserDirBuf = aHomeDirURL + "/";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -1963,8 +1963,11 @@ static bool ImplIsValidTimePortion( bool _bSkipInvalidCharacters, const OUString
|
||||
static bool ImplCutTimePortion( OUStringBuffer& _rStr, sal_Int32 _nSepPos, bool _bSkipInvalidCharacters, short* _pPortion )
|
||||
{
|
||||
OUString sPortion(_rStr.getStr(), _nSepPos );
|
||||
_rStr = _nSepPos < _rStr.getLength()
|
||||
? _rStr.copy( _nSepPos + 1 ) : OUStringBuffer();
|
||||
|
||||
if (_nSepPos < _rStr.getLength())
|
||||
_rStr = _rStr.copy(_nSepPos + 1);
|
||||
else
|
||||
_rStr.truncate();
|
||||
|
||||
if ( !ImplIsValidTimePortion( _bSkipInvalidCharacters, sPortion ) )
|
||||
return false;
|
||||
|
@@ -1962,7 +1962,7 @@ OUString OutputDevice::ImplGetEllipsisString( const OutputDevice& rTargetDevice,
|
||||
sal_Int32 nEraseChars = std::max<sal_Int32>(4, aStr.getLength() - (nIndex*4)/3);
|
||||
while( nEraseChars < aStr.getLength() && _rLayout.GetTextWidth( aTmpStr.toString(), 0, aTmpStr.getLength() ) > nMaxWidth )
|
||||
{
|
||||
aTmpStr = OUStringBuffer(aStr);
|
||||
aTmpStr = aStr;
|
||||
sal_Int32 i = (aTmpStr.getLength() - nEraseChars)/2;
|
||||
aTmpStr.remove(i, nEraseChars++);
|
||||
aTmpStr.insert(i, "...");
|
||||
|
Reference in New Issue
Block a user