mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
Replace reset/release by std::move for unique_ptr
This commit is contained in:
parent
1a24af1b8b
commit
38e53014a9
@ -858,10 +858,9 @@ bool QgsProject::readProjectFile( const QString &filename )
|
||||
|
||||
// start new project, just keep the file name and auxiliary storage
|
||||
QString fileName = mFile.fileName();
|
||||
std::unique_ptr<QgsAuxiliaryStorage> aStorage;
|
||||
aStorage.reset( mAuxiliaryStorage.release() );
|
||||
std::unique_ptr<QgsAuxiliaryStorage> aStorage = std::move( mAuxiliaryStorage );
|
||||
clear();
|
||||
mAuxiliaryStorage.reset( aStorage.release() );
|
||||
mAuxiliaryStorage = std::move( aStorage );
|
||||
mFile.setFileName( fileName );
|
||||
|
||||
// now get any properties
|
||||
|
Loading…
x
Reference in New Issue
Block a user