0024030: Undefined reference to `NCollection_IncAllocator::DefaultBlockSize'.
authoremv <emv@opencascade.com>
Mon, 17 Jun 2013 10:30:59 +0000 (14:30 +0400)
committeremv <emv@opencascade.com>
Tue, 18 Jun 2013 11:45:55 +0000 (15:45 +0400)
src/NCollection/NCollection_IncAllocator.cxx

index 74ed5ab..77fc536 100755 (executable)
@@ -178,8 +178,9 @@ NCollection_IncAllocator::NCollection_IncAllocator (const size_t theBlockSize)
   if (IS_DEBUG)
     Debug_Create(this);
 #endif
+  const size_t aDefault = DefaultBlockSize;
   const size_t aSize = IMEM_SIZE(sizeof(IBlock)) +
-      IMEM_SIZE((theBlockSize > 2*sizeof(IBlock)) ? theBlockSize : DefaultBlockSize);
+      IMEM_SIZE((theBlockSize > 2*sizeof(IBlock)) ? theBlockSize : aDefault);
   IBlock * const aBlock = (IBlock *) malloc (aSize * sizeof(aligned_t));
   myFirstBlock = aBlock;
   mySize = aSize - IMEM_SIZE(sizeof(IBlock));