Skip to content

Commit

Permalink
OverlayManager: fix unititialized hideTab variable
Browse files Browse the repository at this point in the history
The hideTab is of type bool, which is primitive type and is thus unitialized if new
instance of the class is created. The exception would be to for static
instance of the class, but that is not the case (only the pointer to the instance is static).

It was originaly initialized, but the initialization was removed in
9d5390e.
  • Loading branch information
pinkavaj authored and chennes committed Sep 9, 2024
1 parent 858ae45 commit ff796e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gui/OverlayManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class OverlayStyleSheet: public ParameterGrp::ObserverType {

ParameterGrp::handle handle;
QString activeStyleSheet;
bool hideTab;
bool hideTab = false;

private:
QString detectOverlayStyleSheetFileName() const {
Expand Down

0 comments on commit ff796e0

Please sign in to comment.