[Libreoffice-commits] core.git: vcl/source

Caolán McNamara caolanm at redhat.com
Fri Feb 10 10:58:50 UTC 2017


 vcl/source/control/field2.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ae755d90241e9e626a58f94d8bf61b1974ea84d4
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Feb 10 10:53:53 2017 +0000

    coverity#1371289 Missing move assignment operator
    
    Change-Id: Iabdebb02e91c630aef11e99f4677fd4187df78a5

diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx
index 8699725..cab30fd 100644
--- a/vcl/source/control/field2.cxx
+++ b/vcl/source/control/field2.cxx
@@ -1965,7 +1965,7 @@ static bool ImplCutTimePortion( OUStringBuffer& _rStr, sal_Int32 _nSepPos, bool
     OUString sPortion(_rStr.getStr(), _nSepPos );
 
     if (_nSepPos < _rStr.getLength())
-        _rStr = _rStr.copy(_nSepPos + 1);
+        _rStr.remove(0, _nSepPos + 1);
     else
         _rStr.truncate();
 


More information about the Libreoffice-commits mailing list