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

@@ -757,7 +757,7 @@ public:
BEAST_EXPECT(table->hasUnsupportedEnabled());
}
void run ()
void run () override
{
testConstruct();
testGet ();

View File

@@ -1817,7 +1817,7 @@ class Check_test : public beast::unit_test::suite
}
public:
void run ()
void run () override
{
testEnabled();
testCreateValid();

View File

@@ -257,7 +257,7 @@ public:
}
void
run()
run() override
{
auto testAll = [this](FeatureBitset features) {
testStepLimit(features);

View File

@@ -108,7 +108,7 @@ public:
}
void
run()
run() override
{
using namespace jtx;
auto const sa = supported_amendments();

View File

@@ -141,7 +141,7 @@ class Discrepancy_test : public beast::unit_test::suite
}
public:
void run ()
void run () override
{
using namespace test::jtx;
auto const sa = supported_amendments();

View File

@@ -521,7 +521,7 @@ class Freeze_test : public beast::unit_test::suite
public:
void run()
void run() override
{
auto testAll = [this](FeatureBitset features)
{

View File

@@ -284,7 +284,7 @@ class HashRouter_test : public beast::unit_test::suite
public:
void
run()
run() override
{
testNonExpiration();
testExpiration();

View File

@@ -239,7 +239,7 @@ public:
}
void
run()
run() override
{
testHandleMismatch();
}

View File

@@ -217,7 +217,7 @@ class LedgerLoad_test : public beast::unit_test::suite
}
public:
void run ()
void run () override
{
beast::temp_dir td;
auto sd = setupLedger(td);

View File

@@ -27,7 +27,7 @@ namespace ripple {
class LoadFeeTrack_test : public beast::unit_test::suite
{
public:
void run ()
void run () override
{
Config d; // get a default configuration object
LoadFeeTrack l;

View File

@@ -32,7 +32,7 @@ public:
}
void
run()
run() override
{
test();
}

View File

@@ -115,7 +115,7 @@ public:
}
void
run()
run() override
{
test();
}
@@ -181,7 +181,7 @@ public:
}
void
run()
run() override
{
auto const result = bfind(100, 9000,
[&](std::size_t n) { return oversize(n); });

View File

@@ -1352,7 +1352,7 @@ public:
}
void
run()
run() override
{
source_currencies_limit();
no_direct_path_no_intermediary_no_alternatives();

View File

@@ -623,7 +623,7 @@ public:
lastRotated = ledgerSeq - 1;
}
void run()
void run() override
{
testClear();
testAutomatic();

View File

@@ -92,7 +92,7 @@ public:
env(jv, ter(temINVALID_FLAG));
}
void run()
void run() override
{
testDisableMasterKey();
testPasswordSpent();

View File

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

View File

@@ -63,7 +63,7 @@ class Taker_test : public beast::unit_test::suite
}
STAmount
get_funds (AccountID const& owner, STAmount const& funds) const
get_funds (AccountID const& owner, STAmount const& funds) const override
{
if (owner == account ())
return funds_;
@@ -358,7 +358,7 @@ public:
}
void
run()
run() override
{
test_xrp_to_iou ();
test_iou_to_xrp ();

View File

@@ -379,7 +379,7 @@ class Ticket_test : public beast::unit_test::suite
}
public:
void run ()
void run () override
{
testTicketNotEnabled ();
testTicketCancelNonexistent ();

View File

@@ -487,7 +487,7 @@ class TrustAndBalance_test : public beast::unit_test::suite
}
public:
void run ()
void run () override
{
testTrustNonexistent ();
testCreditLimit ();

View File

@@ -2774,7 +2774,7 @@ public:
}
}
void run()
void run() override
{
testQueue();
testLocalTxRetry();