make kfrm operator= illegal, use copy_from instead
authorGood Guy <good1.2guy@gmail.com>
Mon, 5 Nov 2018 01:10:53 +0000 (18:10 -0700)
committerGood Guy <good1.2guy@gmail.com>
Mon, 5 Nov 2018 01:10:53 +0000 (18:10 -0700)
cinelerra-5.1/cinelerra/keyframe.h
cinelerra-5.1/cinelerra/pluginset.C

index 0d2f4804600fc113ef45a22a5ebc869aa861e881..89edf1f984af931cf86edbabdd4aa91b086056ac 100644 (file)
@@ -34,6 +34,7 @@
 
 class KeyFrame : public Auto
 {
+       KeyFrame &operator =(KeyFrame &k) { return k; } //illegal
 public:
        KeyFrame();
        KeyFrame(EDL *edl, KeyFrames *autos);
index e46fbd326f256011a2365a08151e61543f8fd4f9..6805d8ae171a7409c9c82a2af9c80c71352bb152 100644 (file)
@@ -517,7 +517,7 @@ int PluginSet::optimize()
                                        source;
                                        source = (KeyFrame*)source->next) {
                                        KeyFrame *dest = new KeyFrame(edl, current_edit->keyframes);
-                                       *dest = *source;
+                                       dest->copy_from(source);
                                        current_edit->keyframes->append(dest);
                                }
                                remove(next_edit);