EffectBase/EffectInfo: std:: prefixes

This commit is contained in:
FeRD (Frank Dana)
2019-08-04 23:04:19 -04:00
parent 071fc8caad
commit 38e82e7a9d
4 changed files with 13 additions and 17 deletions

View File

@@ -74,7 +74,7 @@ int EffectBase::constrain(int color_value)
}
// Generate JSON string of this object
string EffectBase::Json() {
std::string EffectBase::Json() {
// Return formatted string
return JsonValue().toStyledString();
@@ -98,14 +98,14 @@ Json::Value EffectBase::JsonValue() {
}
// Load JSON string into this object
void EffectBase::SetJson(string value) {
void EffectBase::SetJson(std::string value) {
// Parse JSON string into JSON objects
Json::Value root;
Json::CharReaderBuilder rbuilder;
Json::CharReader* reader(rbuilder.newCharReader());
string errors;
std::string errors;
bool success = reader->parse( value.c_str(),
value.c_str() + value.size(), &root, &errors );
delete reader;