case 1: // Save referenced files only if this is the builtin server
aServer = pqApplicationCore::instance()->getActiveServer();
if (aServer)
- isBuiltIn != aServer->isRemote();
+ isBuiltIn = !aServer->isRemote();
if(isBuiltIn)
{
createAndCheckRestoreFlag(aTmpDir, theListOfFiles, unused);
emit dataChanged( index( 1, min ) , index( 1, max ) );
return true;
}
+ return Superclass::setData(idx,value,role);
}
//------------------------------------------------------------------
return true;
}
}
+ return Superclass::setData(idx,value,role);
}
//------------------------------------------------------------------
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;
virtual int RequestData(vtkInformation*,
vtkInformationVector**,
vtkInformationVector*);
+
+protected:
// Decription:
// Parse the Json Value corresponding to the root data from the file
- virtual int Parse(Json::Value& root, vtkTable *theTable);
+ virtual void Parse(Json::Value& root, vtkTable *theTable);
// Decription:
// Verify if file exists and can be read by the parser
_loc_names=locNames;
_elgas=elgas;
_defs.push_back(defs);
+ return elga;
}
void ELGACmp::appendELGAIfAny(vtkDataSet *ds) const