Commit 633cea12 authored by Cory Quammen's avatar Cory Quammen Committed by Utkarsh Ayachit

Use VTK_DOUBLE_MAX instead of DBL_MAX

Maybe more portable?

Change-Id: Iaf6bfb48e92568f673849e7dda6e473d024daf81
parent 07268ebc
......@@ -108,7 +108,7 @@ public:
// ".[0][1][2].name1[3]"
const Json::Value & GetSetting(const char* settingName)
{
return this->GetSettingAtOrBelowPriority(settingName, DBL_MAX);
return this->GetSettingAtOrBelowPriority(settingName, VTK_DOUBLE_MAX);
}
//----------------------------------------------------------------------------
......@@ -681,7 +681,7 @@ public:
if (this->JSONRoots.size() == 0)
{
PrioritizedJSONRoot newRoot;
newRoot.Priority = DBL_MAX;
newRoot.Priority = VTK_DOUBLE_MAX;
this->JSONRoots.push_back(newRoot);
}
}
......
......@@ -239,7 +239,7 @@ bool vtkInitializationHelper::LoadSettings()
// Load user-level settings
std::string userSettingsFileName = vtkInitializationHelper::GetUserSettingsDirectory();
userSettingsFileName.append("UserSettings.json");
success = success && settings->AddSettingsFromFile(userSettingsFileName, 2.0);
success = success && settings->AddSettingsFromFile(userSettingsFileName, VTK_DOUBLE_MAX);
// Load site-level settings
// FIXME - site settings will likely live elsewhere
......
Markdown is supported
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