Fix build errors due to C++14-features

This commit is contained in:
Gaute Lindkvist 2020-09-03 09:13:13 +02:00
parent 5f6dce5059
commit e6dcb8257d

View File

@ -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 )
{