mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0026912: CLang 3.6.2 compiler warning [-Winconsistent-missing-override]
This commit is contained in:
@@ -62,11 +62,11 @@ public:
|
||||
Standard_EXPORT ~NCollection_AccAllocator();
|
||||
|
||||
//! Allocate memory with given size
|
||||
Standard_EXPORT virtual void* Allocate (const size_t theSize);
|
||||
Standard_EXPORT virtual void* Allocate (const size_t theSize) Standard_OVERRIDE;
|
||||
|
||||
//! Free a previously allocated memory;
|
||||
//! memory is returned to the OS when all allocations in some block are freed
|
||||
Standard_EXPORT virtual void Free (void* theAddress);
|
||||
Standard_EXPORT virtual void Free (void* theAddress) Standard_OVERRIDE;
|
||||
|
||||
// --------- PROTECTED TYPES ---------
|
||||
protected:
|
||||
|
@@ -30,10 +30,10 @@ public:
|
||||
Standard_EXPORT NCollection_AlignedAllocator (const size_t theAlignment);
|
||||
|
||||
//! Allocate memory with given size. Returns NULL on failure.
|
||||
Standard_EXPORT virtual void* Allocate (const size_t theSize);
|
||||
Standard_EXPORT virtual void* Allocate (const size_t theSize) Standard_OVERRIDE;
|
||||
|
||||
//! Free a previously allocated memory.
|
||||
Standard_EXPORT virtual void Free (void* thePtr);
|
||||
Standard_EXPORT virtual void Free (void* thePtr) Standard_OVERRIDE;
|
||||
|
||||
private:
|
||||
|
||||
|
@@ -27,8 +27,8 @@ class NCollection_HeapAllocator : public NCollection_BaseAllocator
|
||||
{
|
||||
public:
|
||||
// ---------- PUBLIC METHODS ----------
|
||||
Standard_EXPORT virtual void* Allocate (const Standard_Size theSize);
|
||||
Standard_EXPORT virtual void Free (void * anAddress);
|
||||
Standard_EXPORT virtual void* Allocate (const Standard_Size theSize) Standard_OVERRIDE;
|
||||
Standard_EXPORT virtual void Free (void * anAddress) Standard_OVERRIDE;
|
||||
|
||||
Standard_EXPORT static const Handle(NCollection_HeapAllocator)&
|
||||
GlobalHeapAllocator();
|
||||
|
@@ -45,10 +45,10 @@ class NCollection_IncAllocator : public NCollection_BaseAllocator
|
||||
Standard_EXPORT NCollection_IncAllocator (const size_t theBlockSize = DefaultBlockSize);
|
||||
|
||||
//! Allocate memory with given size. Returns NULL on failure
|
||||
Standard_EXPORT virtual void* Allocate (const size_t size);
|
||||
Standard_EXPORT virtual void* Allocate (const size_t size) Standard_OVERRIDE;
|
||||
|
||||
//! Free a previously allocated memory. Does nothing
|
||||
Standard_EXPORT virtual void Free (void *anAddress);
|
||||
Standard_EXPORT virtual void Free (void *anAddress) Standard_OVERRIDE;
|
||||
|
||||
//! Diagnostic method, returns the total allocated size
|
||||
Standard_EXPORT size_t GetMemSize () const;
|
||||
|
@@ -42,10 +42,10 @@ public:
|
||||
Standard_EXPORT virtual ~NCollection_WinHeapAllocator();
|
||||
|
||||
//! Allocate memory
|
||||
Standard_EXPORT virtual void* Allocate (const Standard_Size theSize);
|
||||
Standard_EXPORT virtual void* Allocate (const Standard_Size theSize) Standard_OVERRIDE;
|
||||
|
||||
//! Release memory
|
||||
Standard_EXPORT virtual void Free (void* theAddress);
|
||||
Standard_EXPORT virtual void Free (void* theAddress) Standard_OVERRIDE;
|
||||
|
||||
// Declaration of CASCADE RTTI
|
||||
DEFINE_STANDARD_RTTI(NCollection_WinHeapAllocator, NCollection_BaseAllocator)
|
||||
|
Reference in New Issue
Block a user