mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 15:20:56 -06:00
cmListFileCache: Add explicit constructors
In order to construct with an initializer list in pure C++11, add the explicit constructors.
This commit is contained in:
@@ -73,6 +73,14 @@ public:
|
||||
std::string FilePath;
|
||||
long Line = 0;
|
||||
|
||||
cmListFileContext() = default;
|
||||
cmListFileContext(std::string name, std::string filePath, long line)
|
||||
: Name(std::move(name))
|
||||
, FilePath(std::move(filePath))
|
||||
, Line(line)
|
||||
{
|
||||
}
|
||||
|
||||
static cmListFileContext FromCommandContext(cmCommandContext const& lfcc,
|
||||
std::string const& fileName)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user