File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -150,8 +150,9 @@ std::stringstream PreprocessFile(const char *filename)
150150
151151using json = nlohmann::json;
152152
153- IoData::IoData (nlohmann::json &&config ) : units(1.0 , 1.0 ), init(false )
153+ IoData::IoData (nlohmann::json &&config_ ) : units(1.0 , 1.0 ), init(false )
154154{
155+ auto config = std::move (config_);
155156 // Set up configuration option data structures.
156157 problem.SetUp (config);
157158 model.SetUp (config);
Original file line number Diff line number Diff line change @@ -43,10 +43,10 @@ class IoData
4343 void CheckConfiguration ();
4444
4545public:
46- IoData (const Units &units) : units(units), init(false ) {}
46+ explicit IoData (const Units &units) : units(units), init(false ) {}
4747
4848 // Take parsed json and override options defaults.
49- IoData (nlohmann::json &&config);
49+ explicit IoData (nlohmann::json &&config);
5050
5151 // Parse command line arguments and override options defaults.
5252 IoData (const char *filename, bool print);
You can’t perform that action at this time.
0 commit comments