From a799353f60ee5b51c6337fa55b79e1b55bb5af3b Mon Sep 17 00:00:00 2001 From: Thoronador Date: Sat, 11 Oct 2014 00:06:50 +0200 Subject: [PATCH] fix uninitialized fields in CSMDoc::Operation class --- apps/opencs/model/doc/operation.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/opencs/model/doc/operation.cpp b/apps/opencs/model/doc/operation.cpp index 533ee20a9..7f77e8ac9 100644 --- a/apps/opencs/model/doc/operation.cpp +++ b/apps/opencs/model/doc/operation.cpp @@ -27,7 +27,9 @@ void CSMDoc::Operation::prepareStages() } CSMDoc::Operation::Operation (int type, bool ordered, bool finalAlways) -: mType (type), mOrdered (ordered), mFinalAlways (finalAlways) +: mType (type), mStages(std::vector >()), mCurrentStage(mStages.begin()), + mCurrentStep(0), mCurrentStepTotal(0), mTotalSteps(0), mOrdered (ordered), + mFinalAlways (finalAlways), mError(false) { connect (this, SIGNAL (finished()), this, SLOT (operationDone())); } @@ -120,4 +122,4 @@ void CSMDoc::Operation::executeStage() void CSMDoc::Operation::operationDone() { emit done (mType, mError); -} \ No newline at end of file +}