mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 23:20:29 -05:00
Fixes by clang-tidy
This commit is contained in:
1 parent
4a2e730ee0
commit
fc2106edb0
33 files changed
+115
-85
No files matched your search
@@ -259,7 +259,7 @@ void addToPathTree( PathNode* node, QStringList pathComponents, const QString& f
|
||||
}
|
||||
}
|
||||
|
||||
node->children.push_back( std::unique_ptr<PathNode>( new PathNode( pathComponent, node ) ) );
|
||||
node->children.push_back( std::make_unique<PathNode>( pathComponent, node ) );
|
||||
addToPathTree( node->children.back().get(), pathComponents, fileName );
|
||||
}
|
||||
else
|
||||
@@ -335,7 +335,7 @@ std::map<QString, QStringList> RiaFilePathTools::keyPathComponentsForEachFilePat
|
||||
allComponents[fileName] = pathComponentsForFile;
|
||||
}
|
||||
|
||||
auto topNode = std::unique_ptr<PathNode>( new PathNode( "", nullptr ) );
|
||||
auto topNode = std::make_unique<PathNode>( "", nullptr );
|
||||
|
||||
for ( auto keyComponentsPair : allComponents )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user