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

@@ -184,7 +184,7 @@ class AccountCurrencies_test : public beast::unit_test::suite
}
public:
void run ()
void run () override
{
testBadInput ();
testBasic ();

View File

@@ -314,7 +314,7 @@ public:
}
}
void run()
void run() override
{
testErrors();
testSignerLists();

View File

@@ -863,7 +863,7 @@ public:
BEAST_EXPECT(linesEnd.isMember(jss::id) && linesEnd[jss::id] == 5);
}
void run ()
void run () override
{
testAccountLines();
testAccountLineDelete();

View File

@@ -267,7 +267,7 @@ public:
}
void run()
void run() override
{
testSequential(true);
testSequential(false);

View File

@@ -438,7 +438,7 @@ public:
env(fset (alice, asfRequireAuth), ter(tecOWNERS));
}
void run()
void run() override
{
testNullAccountSet();
testMostFlags();

View File

@@ -166,7 +166,7 @@ class AccountTX_test : public beast::unit_test::suite
public:
void
run()
run() override
{
testParameters();
}

View File

@@ -157,7 +157,7 @@ class AmendmentBlocked_test : public beast::unit_test::suite
}
public:
void run()
void run() override
{
testBlockedMethods();
}

View File

@@ -216,7 +216,7 @@ public:
}
}
void run()
void run() override
{
testValid();
testErrors();

View File

@@ -106,7 +106,7 @@ class GetCounts_test : public beast::unit_test::suite
}
public:
void run ()
void run () override
{
testGetCounts();
}

View File

@@ -2353,7 +2353,7 @@ public:
}
}
void run ()
void run () override
{
testBadRpcCommand ();
testAutoFillFees ();

View File

@@ -709,7 +709,7 @@ public:
}
}
void run()
void run() override
{
testKeyType (boost::none, secp256k1_strings);
testKeyType (std::string("secp256k1"), secp256k1_strings);

View File

@@ -52,7 +52,7 @@ public:
BEAST_EXPECT(lc_result[jss::ledger_index] == 3);
}
void run()
void run() override
{
testMonitorRoot();
}

View File

@@ -436,7 +436,7 @@ public:
}
}
void run()
void run() override
{
testCurrentLedgerToLimits(true);
testCurrentLedgerToLimits(false);

View File

@@ -1500,7 +1500,7 @@ class LedgerRPC_test : public beast::unit_test::suite
}
public:
void run ()
void run () override
{
testLedgerRequest();
testBadInput();

View File

@@ -291,7 +291,7 @@ public:
}
void run ()
void run () override
{
testLedgerRequest();
testEvolution();

View File

@@ -227,7 +227,7 @@ class NoRippleCheck_test : public beast::unit_test::suite
}
public:
void run ()
void run () override
{
testBadInput ();
for (auto user : {true, false})
@@ -327,7 +327,7 @@ class NoRippleCheckLimits_test : public beast::unit_test::suite
}
public:
void run ()
void run () override
{
for (auto admin : {true, false})
testLimits (admin);

View File

@@ -208,7 +208,7 @@ public:
}
}
void run ()
void run () override
{
testSetAndClear();

View File

@@ -201,7 +201,7 @@ class OwnerInfo_test : public beast::unit_test::suite
}
public:
void run ()
void run () override
{
testBadInput ();
testBasic ();

View File

@@ -85,7 +85,7 @@ class Peers_test : public beast::unit_test::suite
}
public:
void run ()
void run () override
{
testRequest();
}

View File

@@ -88,7 +88,7 @@ public:
}
}
void run ()
void run () override
{
testServerInfo ();
}

View File

@@ -83,7 +83,7 @@ private:
}
public:
void run()
void run() override
{
test_OK ();
test_error ();
@@ -200,7 +200,7 @@ private:
}
public:
void run()
void run() override
{
test_OK ();
test_error ();

View File

@@ -242,7 +242,7 @@ class TransactionEntry_test : public beast::unit_test::suite
}
public:
void run ()
void run () override
{
testBadInput();
testRequest();

View File

@@ -142,7 +142,7 @@ class TransactionHistory_test : public beast::unit_test::suite
}
public:
void run ()
void run () override
{
testBadInput();
testRequest();

View File

@@ -399,7 +399,7 @@ public:
}
void
run()
run() override
{
testPrivileges();
testStaticUNL();