From 94b1490b7b906b90e743512edd305302ed96ce0f Mon Sep 17 00:00:00 2001 From: Gilles Moris Date: Wed, 15 May 2019 07:07:21 +0200 Subject: Create a constant unusedPartType object instead of recreating it each time --- parttypes.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'parttypes.cc') 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. -- cgit v1.2.1