coverity#1371289 Missing move assignment operator

Change-Id: Idc26faf904f0c89cfd66f53bb311d8ce9b41eaab
This commit is contained in:
Caolán McNamara
2017-02-08 09:41:34 +00:00
parent 193ec57c89
commit 27a673ac52
4 changed files with 8 additions and 5 deletions

View File

@@ -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+");
}

View File

@@ -198,7 +198,7 @@ OUString xdg_user_dir_lookup (const char *type)
continue;
if (relative)
{
aUserDirBuf = OUStringBuffer(aHomeDirURL + "/");
aUserDirBuf = aHomeDirURL + "/";
}
else
{

View File

@@ -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;

View File

@@ -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, "...");