From f389306964c951457f5edd73248a426c7e704018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Mon, 9 Apr 2018 12:32:46 +0100 Subject: [PATCH] Make sure deprecated Partition::State enums have the same values as the new ones. --- src/core/partition.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/core/partition.h b/src/core/partition.h index b1d6c01..f62da08 100644 --- a/src/core/partition.h +++ b/src/core/partition.h @@ -15,8 +15,7 @@ * along with this program. If not, see .* *************************************************************************/ -#if !defined(KPMCORE_PARTITION_H) - +#ifndef KPMCORE_PARTITION_H #define KPMCORE_PARTITION_H #include "core/partitionnode.h" @@ -81,10 +80,10 @@ public: New, /**< from a NewOperation */ Copy, /**< from a CopyOperation */ Restore, /**< from a RestoreOperation */ - StateNone, /**< deprecated */ - StateNew, /**< deprecated */ - StateCopy, /**< deprecated */ - StateRestore /**< deprecated */ + StateNone = 0, /**< deprecated */ + StateNew = 1, /**< deprecated */ + StateCopy = 2, /**< deprecated */ + StateRestore = 3 /**< deprecated */ }; Partition(PartitionNode* parent, const Device& device, const PartitionRole& role, FileSystem* fs, qint64 sectorStart, qint64 sectorEnd, QString partitionPath, PartitionTable::Flags availableFlags = PartitionTable::FlagNone, const QString& mountPoint = QString(), bool mounted = false, PartitionTable::Flags activeFlags = PartitionTable::FlagNone, State state = State::None);