From abf1f1460453051301c94683ef82d9b34f88c0b0 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Mon, 11 Feb 2019 17:14:39 -0500 Subject: [PATCH] [partition] Initialize members of PartitionEntry --- src/modules/partition/core/PartitionLayout.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/modules/partition/core/PartitionLayout.h b/src/modules/partition/core/PartitionLayout.h index 5ec65cf22..8c17c3a9f 100644 --- a/src/modules/partition/core/PartitionLayout.h +++ b/src/modules/partition/core/PartitionLayout.h @@ -1,6 +1,7 @@ /* === This file is part of Calamares - === * * Copyright 2018, Collabora Ltd + * Copyright 2019, Adriaan de Groot * * Calamares is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -47,11 +48,11 @@ public: { QString partLabel; QString partMountPoint; - int partFileSystem; - double partSize; - SizeUnit partSizeUnit; - double partMinSize; - SizeUnit partMinSizeUnit; + int partFileSystem = 0; + double partSize = 0.0L; + SizeUnit partSizeUnit = Percent; + double partMinSize = 0.0L; + SizeUnit partMinSizeUnit = Percent; }; PartitionLayout();