• Marco Bubke's avatar
    Utils: Fix smallstring move assignment · ce4d7e9d
    Marco Bubke authored
    Before the string was simply swapped with the other string which can lead
    to an unexpected behavior for xvalues. Now the destructor of the source is
    called and it is default initialized.
    
    foo = std::move(bar);
    
    bar would now hold the value of foo.
    
    Change-Id: Ibea3f18333a168634b7faf2fdaf9b5b52c82d5cc
    Reviewed-by: Tim Jenssen's avatarTim Jenssen <tim.jenssen@qt.io>
    ce4d7e9d
Name
Last commit
Last update
bin Loading commit data...
dist Loading commit data...
doc Loading commit data...
qbs Loading commit data...
scripts Loading commit data...
share Loading commit data...
src Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
HACKING Loading commit data...
LICENSE.GPL3-EXCEPT Loading commit data...
README.md Loading commit data...
docs.pri Loading commit data...
qtcreator.pri Loading commit data...
qtcreator.pro Loading commit data...
qtcreator.qbs Loading commit data...
qtcreatordata.pri Loading commit data...