mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix build errors due to C++14-features
This commit is contained in:
parent
5f6dce5059
commit
e6dcb8257d
@ -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 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user