Fix build errors due to C++14-features

This commit is contained in:
Gaute Lindkvist committed 2020-09-07 14:08:23 +02:00
1 parent 5f6dce5059
commit e6dcb8257d
1 file changed
+2 -2
@@ -241,7 +241,7 @@ void addToPathTree( PathNode* node, QStringList pathComponents, const QString& f
}
}
node->children.push_back( std::make_unique<PathNode>( pathComponent, node ) );
node->children.push_back( std::unique_ptr<PathNode>( new PathNode( pathComponent, node ) ) );
addToPathTree( node->children.back().get(), pathComponents, fileName );
}
else
@@ -323,7 +323,7 @@ std::map<QString, QStringList> RiaFilePathTools::keyPathComponentsForEachFilePat
}
}
auto topNode = std::make_unique<PathNode>( "", nullptr );
auto topNode = std::unique_ptr<PathNode>( new PathNode( "", nullptr ) );
for ( auto keyComponentsPair : allComponents )
{