From e6dcb8257d25a7ba190baac4f3af93b3f1c1ed28 Mon Sep 17 00:00:00 2001 From: Gaute Lindkvist Date: Thu, 3 Sep 2020 09:13:13 +0200 Subject: [PATCH] Fix build errors due to C++14-features --- ApplicationCode/Application/Tools/RiaFilePathTools.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) {