[LyX/master] Initialize properly IconInfo struct
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Fri Jan 29 18:19:51 UTC 2021
commit b1efc5a48e69c6f65dc01c4d58c97f0719c02483
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date: Fri Jan 29 18:57:13 2021 +0100
Initialize properly IconInfo struct
Spotted by coverity.
---
src/frontends/qt/GuiApplication.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/frontends/qt/GuiApplication.h b/src/frontends/qt/GuiApplication.h
index 2622c71..148d20f 100644
--- a/src/frontends/qt/GuiApplication.h
+++ b/src/frontends/qt/GuiApplication.h
@@ -269,9 +269,9 @@ struct IconInfo {
/// Absolute path to icon file
QString filepath;
/// Swap the icon in RTL mode
- bool swap;
+ bool swap = false;
/// Invert the icon in dark mode
- bool invert;
+ bool invert = false;
};
/// \return the pixmap for the given path, name and extension.
More information about the lyx-cvs
mailing list