diff options
author | Gilles Moris <gilles.moris@free.fr> | 2019-05-15 07:07:21 +0200 |
---|---|---|
committer | Gilles Moris <gilles.moris@free.fr> | 2019-05-15 07:07:21 +0200 |
commit | 94b1490b7b906b90e743512edd305302ed96ce0f (patch) | |
tree | 94f544b4d84702270a7b7dad7f2622a954479da9 /parttypes.h | |
parent | faaaa2618f965d12fc47837aa026bd123f680098 (diff) | |
download | sgdisk-94b1490b7b906b90e743512edd305302ed96ce0f.tar.gz |
Create a constant unusedPartType object instead of recreating it each time
Diffstat (limited to 'parttypes.h')
-rw-r--r-- | parttypes.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/parttypes.h b/parttypes.h index c108a17..2b80026 100644 --- a/parttypes.h +++ b/parttypes.h @@ -36,6 +36,9 @@ protected: static AType* lastType; // Pointer to last entry in the list void AddAllTypes(void); public: + // PartType with GUID "00000000-0000-0000-0000-000000000000" + static const PartType unusedPartType; + PartType(void); PartType(const PartType & orig); PartType(const GUIDData & orig); |