summaryrefslogtreecommitdiffstats
path: root/src/AllocationPool.h
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2020-05-10 18:16:38 +0200
committerGitHub <noreply@github.com>2020-05-10 18:16:38 +0200
commit154df6b09d0c39ef9a9b1ee049251b645c13f559 (patch)
treedd5976d81910d369e09b95c35fd89cd8cccb378c /src/AllocationPool.h
parentRemove pkFishingFloat documentation (#4732) (diff)
downloadcuberite-154df6b09d0c39ef9a9b1ee049251b645c13f559.tar
cuberite-154df6b09d0c39ef9a9b1ee049251b645c13f559.tar.gz
cuberite-154df6b09d0c39ef9a9b1ee049251b645c13f559.tar.bz2
cuberite-154df6b09d0c39ef9a9b1ee049251b645c13f559.tar.lz
cuberite-154df6b09d0c39ef9a9b1ee049251b645c13f559.tar.xz
cuberite-154df6b09d0c39ef9a9b1ee049251b645c13f559.tar.zst
cuberite-154df6b09d0c39ef9a9b1ee049251b645c13f559.zip
Diffstat (limited to '')
-rw-r--r--src/AllocationPool.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/AllocationPool.h b/src/AllocationPool.h
index 0a529a8e3..78bb87eee 100644
--- a/src/AllocationPool.h
+++ b/src/AllocationPool.h
@@ -34,7 +34,7 @@ public:
virtual void Free(T * a_ptr) = 0;
/** Two pools compare equal if memory allocated by one can be freed by the other */
- bool IsEqual(const cAllocationPool & a_Other) const NOEXCEPT
+ bool IsEqual(const cAllocationPool & a_Other) const noexcept
{
return ((this == &a_Other) || DoIsEqual(a_Other) || a_Other.DoIsEqual(*this));
}
@@ -50,7 +50,7 @@ public:
}
private:
- virtual bool DoIsEqual(const cAllocationPool & a_Other) const NOEXCEPT = 0;
+ virtual bool DoIsEqual(const cAllocationPool & a_Other) const noexcept = 0;
};
@@ -176,7 +176,7 @@ private:
std::list<void *> m_FreeList;
std::unique_ptr<typename cAllocationPool<T>::cStarvationCallbacks> m_Callbacks;
- virtual bool DoIsEqual(const cAllocationPool<T> & a_Other) const NOEXCEPT override
+ virtual bool DoIsEqual(const cAllocationPool<T> & a_Other) const noexcept override
{
return (dynamic_cast<const cListAllocationPool<T>*>(&a_Other) != nullptr);
}