Skip to content

Commit

Permalink
Wrap assignment in conditional with () (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc authored Dec 2, 2019
1 parent 5e1b6fd commit c04dc94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Clip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ void Clip::SetJsonValue(Json::Value root) {

if (!existing_effect["type"].isNull()) {
// Create instance of effect
if (e = EffectInfo().CreateEffect(existing_effect["type"].asString())) {
if ( (e = EffectInfo().CreateEffect(existing_effect["type"].asString())) ) {

// Load Json into Effect
e->SetJsonValue(existing_effect);
Expand Down
4 changes: 2 additions & 2 deletions src/Timeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,7 @@ void Timeline::SetJsonValue(Json::Value root) {

if (!existing_effect["type"].isNull()) {
// Create instance of effect
if (e = EffectInfo().CreateEffect(existing_effect["type"].asString())) {
if ( (e = EffectInfo().CreateEffect(existing_effect["type"].asString())) ) {

// Load Json into Effect
e->SetJsonValue(existing_effect);
Expand Down Expand Up @@ -1364,7 +1364,7 @@ void Timeline::apply_json_to_effects(Json::Value change, EffectBase* existing_ef
EffectBase *e = NULL;

// Init the matching effect object
if (e = EffectInfo().CreateEffect(effect_type)) {
if ( (e = EffectInfo().CreateEffect(effect_type)) ) {

// Load Json into Effect
e->SetJsonValue(change["value"]);
Expand Down

0 comments on commit c04dc94

Please sign in to comment.