From 8bdd4befbf1977f0a0c1ad521a487adf8b6d4173 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 21 Aug 2021 12:22:15 +0200 Subject: [PATCH] - replaced deprecated throw() with noexcept in TObjPtr --- src/common/objects/dobjgc.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/common/objects/dobjgc.h b/src/common/objects/dobjgc.h index de187db6cf..e3f8b85b14 100644 --- a/src/common/objects/dobjgc.h +++ b/src/common/objects/dobjgc.h @@ -175,7 +175,7 @@ public: TObjPtr() = default; TObjPtr(const TObjPtr &q) = default; - TObjPtr(T q) throw() + TObjPtr(T q) noexcept : pp(q) { } @@ -207,35 +207,35 @@ public: return *this; } - T Get() throw() + T Get() noexcept { return GC::ReadBarrier(pp); } - T ForceGet() throw() //for situations where the read barrier needs to be skipped. + T ForceGet() noexcept //for situations where the read barrier needs to be skipped. { return pp; } - operator T() throw() + operator T() noexcept { return GC::ReadBarrier(pp); } - T &operator*() + T &operator*() noexcept { T q = GC::ReadBarrier(pp); assert(q != NULL); return *q; } - T operator->() throw() + T operator->() noexcept { return GC::ReadBarrier(pp); } - bool operator!=(T u) throw() + bool operator!=(T u) noexcept { return GC::ReadBarrier(o) != u; } - bool operator==(T u) throw() + bool operator==(T u) noexcept { return GC::ReadBarrier(o) == u; }