summaryrefslogtreecommitdiff
path: root/desktop/inc
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2021-10-25 21:13:42 +0200
committerLuboš Luňák <l.lunak@collabora.com>2021-12-07 12:55:55 +0100
commit12ad13f35bffc2f22f6f7385b2e426c20ea91bd8 (patch)
tree0c903598e23b28acec1fcfb2159ea98bc3bcd365 /desktop/inc
parent6720e9569d7ab6c20616ec6b97e5d4a56948908b (diff)
make sure vector elements are initialized properly
Change-Id: If18268a26118ea587f474c21b7ca0f1fa4622744 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126469 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'desktop/inc')
-rw-r--r--desktop/inc/lib/init.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/inc/lib/init.hxx b/desktop/inc/lib/init.hxx
index b8918729cff9..5ebda0a245d6 100644
--- a/desktop/inc/lib/init.hxx
+++ b/desktop/inc/lib/init.hxx
@@ -197,7 +197,7 @@ namespace desktop {
std::vector<bool> m_updatedTypes; // index is type, value is if set
struct PerViewIdData
{
- bool set; // value is if set
+ bool set = false; // value is if set
int sourceViewId;
};
// Flat_map is used in preference to unordered_map because the map is accessed very often.