You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Wrap assignment in conditional with () (#379)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
@@ -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"]);
|
||||
|
||||
Reference in New Issue
Block a user