[PATCH 3/5] spacermanager.cpp: initialize SpacerManager::m_track
Mikko Rapeli
mikko.rapeli at iki.fi
Wed Jan 11 07:30:59 UTC 2017
Fixes cppcheck warning:
[src/timeline/managers/spacermanager.cpp:28]: (warning) Member variable 'SpacerManager::m_track' is not initialized in the constructor.
Signed-off-by: Mikko Rapeli <mikko.rapeli at iki.fi>
---
src/timeline/managers/spacermanager.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/timeline/managers/spacermanager.cpp b/src/timeline/managers/spacermanager.cpp
index 60a369e..3e4820b 100644
--- a/src/timeline/managers/spacermanager.cpp
+++ b/src/timeline/managers/spacermanager.cpp
@@ -26,6 +26,7 @@
#include <QApplication>
SpacerManager::SpacerManager(CustomTrackView *view, DocUndoStack *commandStack) : AbstractToolManager(SpacerType, view, commandStack)
+ , m_track(0)
, m_dragMoved(false)
{
}
--
2.10.2
More information about the kdenlive
mailing list