Coverity scan: Uninitialized scalar variable

* CID 350633
* CID 512344
* CID 514343
This commit is contained in:
wmayer
2024-11-13 12:52:23 +01:00
committed by Chris Hennes
parent 4bc8cd60e9
commit ee1af2748a
3 changed files with 4 additions and 2 deletions

View File

@@ -60,6 +60,7 @@ struct MovingObject
std::string& s)
: obj(o)
, plc(p)
, ref(nullptr)
, rootObj(ro)
, sub(s)
{}
@@ -67,9 +68,8 @@ struct MovingObject
// Default constructor
MovingObject()
: obj(nullptr)
, plc(Base::Placement())
, ref(nullptr)
, rootObj(nullptr)
, sub("")
{}
~MovingObject()

View File

@@ -2781,6 +2781,7 @@ void Adaptive2d::ProcessPolyNode(Paths boundPaths, Paths toolBoundPaths)
// double(entryPoint.Y)/scaleFactor << endl;
AdaptiveOutput output;
output.ReturnMotionType = 0;
output.HelixCenterPoint.first = double(entryPoint.X) / scaleFactor;
output.HelixCenterPoint.second = double(entryPoint.Y) / scaleFactor;

View File

@@ -814,6 +814,7 @@ FilterValueBitset ConstraintFilterList::getMultiFilter()
TaskSketcherConstraints::TaskSketcherConstraints(ViewProviderSketch* sketchView)
: TaskBox(Gui::BitmapFactory().pixmap("Sketcher_CreateLineAngleLength"), tr("Constraints"), true, nullptr)
, specialFilterMode{SpecialFilterType::None}
, sketchView(sketchView)
, inEditMode(false)
, ui(new Ui_TaskSketcherConstraints)