diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-03-06 17:28:59 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-06-24 20:34:28 +0200 |
commit | 618d689dff9a22d9385abf36f5e364b38273b7cf (patch) | |
tree | 9378d463e73933c90dcf90be93da7c9bac3dbeb1 /src/buildings | |
parent | Fix quiet police scanner on OpenAL (diff) | |
download | re3-618d689dff9a22d9385abf36f5e364b38273b7cf.tar re3-618d689dff9a22d9385abf36f5e364b38273b7cf.tar.gz re3-618d689dff9a22d9385abf36f5e364b38273b7cf.tar.bz2 re3-618d689dff9a22d9385abf36f5e364b38273b7cf.tar.lz re3-618d689dff9a22d9385abf36f5e364b38273b7cf.tar.xz re3-618d689dff9a22d9385abf36f5e364b38273b7cf.tar.zst re3-618d689dff9a22d9385abf36f5e364b38273b7cf.zip |
Diffstat (limited to 'src/buildings')
-rw-r--r-- | src/buildings/Building.cpp | 4 | ||||
-rw-r--r-- | src/buildings/Building.h | 4 | ||||
-rw-r--r-- | src/buildings/Treadable.cpp | 4 | ||||
-rw-r--r-- | src/buildings/Treadable.h | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/src/buildings/Building.cpp b/src/buildings/Building.cpp index 8035cf25..92c787e5 100644 --- a/src/buildings/Building.cpp +++ b/src/buildings/Building.cpp @@ -4,8 +4,8 @@ #include "Streaming.h" #include "Pools.h" -void *CBuilding::operator new(size_t sz) { return CPools::GetBuildingPool()->New(); } -void CBuilding::operator delete(void *p, size_t sz) { CPools::GetBuildingPool()->Delete((CBuilding*)p); } +void *CBuilding::operator new(size_t sz) throw() { return CPools::GetBuildingPool()->New(); } +void CBuilding::operator delete(void *p, size_t sz) throw() { CPools::GetBuildingPool()->Delete((CBuilding*)p); } void CBuilding::ReplaceWithNewModel(int32 id) diff --git a/src/buildings/Building.h b/src/buildings/Building.h index 2c2dfb1f..f8ddfa46 100644 --- a/src/buildings/Building.h +++ b/src/buildings/Building.h @@ -9,8 +9,8 @@ public: m_type = ENTITY_TYPE_BUILDING; bUsesCollision = true; } - static void *operator new(size_t); - static void operator delete(void*, size_t); + static void *operator new(size_t) throw(); + static void operator delete(void*, size_t) throw(); void ReplaceWithNewModel(int32 id); diff --git a/src/buildings/Treadable.cpp b/src/buildings/Treadable.cpp index 00abbe13..d84603a6 100644 --- a/src/buildings/Treadable.cpp +++ b/src/buildings/Treadable.cpp @@ -4,5 +4,5 @@ #include "Treadable.h" #include "Pools.h" -void *CTreadable::operator new(size_t sz) { return CPools::GetTreadablePool()->New(); } -void CTreadable::operator delete(void *p, size_t sz) { CPools::GetTreadablePool()->Delete((CTreadable*)p); } +void *CTreadable::operator new(size_t sz) throw() { return CPools::GetTreadablePool()->New(); } +void CTreadable::operator delete(void *p, size_t sz) throw() { CPools::GetTreadablePool()->Delete((CTreadable*)p); } diff --git a/src/buildings/Treadable.h b/src/buildings/Treadable.h index c3ab755e..6a183c63 100644 --- a/src/buildings/Treadable.h +++ b/src/buildings/Treadable.h @@ -5,8 +5,8 @@ class CTreadable : public CBuilding { public: - static void *operator new(size_t); - static void operator delete(void*, size_t); + static void *operator new(size_t) throw(); + static void operator delete(void*, size_t) throw(); bool GetIsATreadable(void) { return true; } }; |