several conversions to smart pointers
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
#include "ui/collapsiblewidget.h"
|
||||
#include "debug.h"
|
||||
|
||||
VoidEffect::VoidEffect(Clip *c, const QString& n) : Effect(c, nullptr) {
|
||||
VoidEffect::VoidEffect(ClipPtr c, const QString& n) : Effect(c, nullptr) {
|
||||
name = n;
|
||||
QString display_name;
|
||||
if (n.isEmpty()) {
|
||||
@@ -43,8 +43,8 @@ VoidEffect::VoidEffect(Clip *c, const QString& n) : Effect(c, nullptr) {
|
||||
meta = &void_meta;
|
||||
}
|
||||
|
||||
Effect *VoidEffect::copy(Clip *c) {
|
||||
Effect* copy = new VoidEffect(c, name);
|
||||
EffectPtr VoidEffect::copy(ClipPtr c) {
|
||||
EffectPtr copy(new VoidEffect(c, name));
|
||||
copy->set_enabled(is_enabled());
|
||||
copy_field_keyframes(copy);
|
||||
return copy;
|
||||
|
||||
Reference in New Issue
Block a user