Commit 53d5dabb authored by Yumin Yuan's avatar Yumin Yuan
Browse files

Fix linux build error with ifstream constructor

parent 60be0d69
......@@ -48,7 +48,7 @@ smtk::model::OperatorResult ImportSMTKModel::operateInternal()
// smtkDebugMacro("Reading a JSON file.");
std::ifstream file(filename);
std::ifstream file(filename.c_str());
if (!file.good())
smtkErrorMacro(this->log(), "Could not open file \"" << filename << "\".\n");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment