summaryrefslogtreecommitdiff
path: root/src/cppunit
diff options
context:
space:
mode:
authorFlorian Becker <fb@vxapps.com>2021-10-01 02:25:02 +0800
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2021-10-01 02:27:28 +0800
commit4a09e067ec7ba06bc89cf30075f4befc892945d9 (patch)
tree6beb601db76fc6cc947fc578366e7f8791a26630 /src/cppunit
parent89c831e25ab566756288c45e5505815e9185b276 (diff)
downloadcppunit-4a09e067ec7ba06bc89cf30075f4befc892945d9.tar.gz
add override annotations
Diffstat (limited to 'src/cppunit')
-rw-r--r--src/cppunit/DefaultProtector.h2
-rw-r--r--src/cppunit/ProtectorChain.cpp2
-rw-r--r--src/cppunit/ProtectorChain.h4
-rw-r--r--src/cppunit/TestCase.cpp2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/cppunit/DefaultProtector.h b/src/cppunit/DefaultProtector.h
index 4a76ea0..8176f39 100644
--- a/src/cppunit/DefaultProtector.h
+++ b/src/cppunit/DefaultProtector.h
@@ -18,7 +18,7 @@ class DefaultProtector : public Protector
{
public:
bool protect( const Functor &functor,
- const ProtectorContext &context );
+ const ProtectorContext &context ) override;
};
CPPUNIT_NS_END
diff --git a/src/cppunit/ProtectorChain.cpp b/src/cppunit/ProtectorChain.cpp
index db7744a..c953447 100644
--- a/src/cppunit/ProtectorChain.cpp
+++ b/src/cppunit/ProtectorChain.cpp
@@ -15,7 +15,7 @@ public:
{
}
- bool operator()() const
+ bool operator()() const override
{
return m_protector->protect( m_functor, m_context );
}
diff --git a/src/cppunit/ProtectorChain.h b/src/cppunit/ProtectorChain.h
index 9123782..e798a96 100644
--- a/src/cppunit/ProtectorChain.h
+++ b/src/cppunit/ProtectorChain.h
@@ -21,7 +21,7 @@ class CPPUNIT_API ProtectorChain : public Protector
public:
ProtectorChain();
- ~ProtectorChain();
+ ~ProtectorChain() override;
void push( Protector *protector );
@@ -30,7 +30,7 @@ public:
int count() const;
bool protect( const Functor &functor,
- const ProtectorContext &context );
+ const ProtectorContext &context ) override;
private:
class ProtectFunctor;
diff --git a/src/cppunit/TestCase.cpp b/src/cppunit/TestCase.cpp
index 431a0c5..31fcefa 100644
--- a/src/cppunit/TestCase.cpp
+++ b/src/cppunit/TestCase.cpp
@@ -27,7 +27,7 @@ public:
{
}
- bool operator()() const
+ bool operator()() const override
{
(m_target->*m_method)();
return true;