Use smart pointer in Windows FSNode stuff.

This commit is contained in:
Stephen Anthony 2019-06-23 15:38:16 -02:30
parent e8ed2fa1dd
commit fe464c2521
1 changed files with 2 additions and 2 deletions

View File

@ -148,7 +148,7 @@ void FilesystemNodeWINDOWS::addFile(AbstractFSList& list, ListMode mode,
entry._isValid = true;
entry._isPseudoRoot = false;
list.emplace_back(new FilesystemNodeWINDOWS(entry));
list.emplace_back(make_shared<FilesystemNodeWINDOWS>(entry));
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@ -241,7 +241,7 @@ bool FilesystemNodeWINDOWS::
entry._isValid = true;
entry._isPseudoRoot = false;
entry._path = toAscii(current_drive);
myList.emplace_back(new FilesystemNodeWINDOWS(entry));
myList.emplace_back(make_shared<FilesystemNodeWINDOWS>(entry));
}
}
else