fix: uninitialized class variable

This specific boolean variable could be used uninitialized. Assigning it
a default value is cheap and it avoids the issue.
This commit is contained in:
Edoardo Morandi
2023-04-16 00:59:16 +02:00
parent 89ebbfebcd
commit 28ff8df3f0

View File

@@ -1327,7 +1327,7 @@ private:
CmdSketcherSnap& operator= (const CmdSketcherSnap&) = delete;
CmdSketcherSnap& operator= (CmdSketcherSnap&&) = delete;
bool snapEnabled;
bool snapEnabled = true;
};
CmdSketcherSnap::CmdSketcherSnap()