-// Copyright (C) 2015 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2015-2019 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//---------------------------------------------------
class Container {
public:
- typedef std::vector<std::pair<std::string,std::vector<double>>> DataType;
+ typedef std::vector<std::pair<std::string,std::vector<double> > > DataType;
Container(){}
void initKeys(std::vector<std::string> &keys, std::string &err) {
for(int i = 0; i < keys.size(); i++) {
}
if(!found) {
std::ostringstream oss;
- oss<<"Bad key value '"<<key<"'";
+ oss<<"Bad key value '"<<key<<"'";
err = oss.str();
}
}
return 0;
try {
- return this->Parse(root, output_table);
+ this->Parse(root, output_table);
return 1;
}
catch(vtkJSONException e) {
}
//---------------------------------------------------
-int vtkJSONReader::Parse(Json::Value& root, vtkTable *table) {
+void vtkJSONReader::Parse(Json::Value& root, vtkTable *table) {
bool hasShortNames = false;
bool hasUnits = false;
Container container;