diff --git a/ApplicationCode/Application/Tools/RiaFilePathTools.cpp b/ApplicationCode/Application/Tools/RiaFilePathTools.cpp index d29e8d220a..84de97d878 100644 --- a/ApplicationCode/Application/Tools/RiaFilePathTools.cpp +++ b/ApplicationCode/Application/Tools/RiaFilePathTools.cpp @@ -241,7 +241,7 @@ void addToPathTree( PathNode* node, QStringList pathComponents, const QString& f } } - node->children.push_back( std::make_unique( pathComponent, node ) ); + node->children.push_back( std::unique_ptr( new PathNode( pathComponent, node ) ) ); addToPathTree( node->children.back().get(), pathComponents, fileName ); } else @@ -323,7 +323,7 @@ std::map RiaFilePathTools::keyPathComponentsForEachFilePat } } - auto topNode = std::make_unique( "", nullptr ); + auto topNode = std::unique_ptr( new PathNode( "", nullptr ) ); for ( auto keyComponentsPair : allComponents ) {