summaryrefslogtreecommitdiff
path: root/parttypes.cc
diff options
context:
space:
mode:
authorGilles Moris <gilles.moris@free.fr>2019-05-15 07:07:21 +0200
committerGilles Moris <gilles.moris@free.fr>2019-05-15 07:07:21 +0200
commit94b1490b7b906b90e743512edd305302ed96ce0f (patch)
tree94f544b4d84702270a7b7dad7f2622a954479da9 /parttypes.cc
parentfaaaa2618f965d12fc47837aa026bd123f680098 (diff)
downloadsgdisk-94b1490b7b906b90e743512edd305302ed96ce0f.tar.gz
Create a constant unusedPartType object instead of recreating it each time
Diffstat (limited to 'parttypes.cc')
-rw-r--r--parttypes.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/parttypes.cc b/parttypes.cc
index cd225d1..1b32569 100644
--- a/parttypes.cc
+++ b/parttypes.cc
@@ -19,6 +19,7 @@ using namespace std;
int PartType::numInstances = 0;
AType* PartType::allTypes = NULL;
AType* PartType::lastType = NULL;
+const PartType PartType::unusedPartType = (GUIDData) "00000000-0000-0000-0000-000000000000";
// Constructor. Its main task is to initialize the data list, but only
// if this is the first instance, since it's a static linked list.