Add missing override keyword:

* Enable the `suggest-override` warning for gcc
* Fix all functions that were flagged by that warning
This commit is contained in:
Joe Loser
2018-05-13 10:55:45 -04:00
committed by seelabs
parent 0ae157a5c3
commit 7c785d0d7c
145 changed files with 276 additions and 271 deletions

View File

@@ -313,7 +313,7 @@ class ClosureCounter_test : public beast::unit_test::suite
}
public:
void run()
void run() override
{
testConstruction();
testArgs();

View File

@@ -852,7 +852,7 @@ trustthesevalidators.gov
}
}
void run ()
void run () override
{
testLegacy ();
testDbPath ();

View File

@@ -170,7 +170,7 @@ public:
}
void
run()
run() override
{
correct_order();
incorrect_order();

View File

@@ -113,7 +113,7 @@ class CryptoPRNG_test : public beast::unit_test::suite
}
public:
void run ()
void run () override
{
testGetValues();
testSaveLoad();

View File

@@ -140,7 +140,7 @@ class JobQueue_test : public beast::unit_test::suite
}
public:
void run()
void run() override
{
testAddJob();
testPostCoro();

View File

@@ -367,7 +367,7 @@ public:
testSQLiteSelect ();
testSQLiteDeleteWithSubselect();
}
void run ()
void run () override
{
testSQLite ();
}

View File

@@ -187,7 +187,7 @@ class Stoppable_test
, test_(test)
, stop_(running)
{}
~A()
~A() override
{
while (stop_ != stopped)
;
@@ -446,7 +446,7 @@ class Stoppable_test
};
public:
void run()
void run() override
{
{
Root rt(*this);

View File

@@ -145,7 +145,7 @@ public:
BEAST_EXPECT(cb.count.load() == 0);
}
void run()
void run() override
{
testThreads( 0, 0, 0);
testThreads( 1, 0, 1);