mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
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:
@@ -757,7 +757,7 @@ public:
|
||||
BEAST_EXPECT(table->hasUnsupportedEnabled());
|
||||
}
|
||||
|
||||
void run ()
|
||||
void run () override
|
||||
{
|
||||
testConstruct();
|
||||
testGet ();
|
||||
|
||||
@@ -1817,7 +1817,7 @@ class Check_test : public beast::unit_test::suite
|
||||
}
|
||||
|
||||
public:
|
||||
void run ()
|
||||
void run () override
|
||||
{
|
||||
testEnabled();
|
||||
testCreateValid();
|
||||
|
||||
@@ -257,7 +257,7 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
run()
|
||||
run() override
|
||||
{
|
||||
auto testAll = [this](FeatureBitset features) {
|
||||
testStepLimit(features);
|
||||
|
||||
@@ -108,7 +108,7 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
run()
|
||||
run() override
|
||||
{
|
||||
using namespace jtx;
|
||||
auto const sa = supported_amendments();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -521,7 +521,7 @@ class Freeze_test : public beast::unit_test::suite
|
||||
|
||||
public:
|
||||
|
||||
void run()
|
||||
void run() override
|
||||
{
|
||||
auto testAll = [this](FeatureBitset features)
|
||||
{
|
||||
|
||||
@@ -284,7 +284,7 @@ class HashRouter_test : public beast::unit_test::suite
|
||||
public:
|
||||
|
||||
void
|
||||
run()
|
||||
run() override
|
||||
{
|
||||
testNonExpiration();
|
||||
testExpiration();
|
||||
|
||||
@@ -239,7 +239,7 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
run()
|
||||
run() override
|
||||
{
|
||||
testHandleMismatch();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -32,7 +32,7 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
run()
|
||||
run() override
|
||||
{
|
||||
test();
|
||||
}
|
||||
|
||||
@@ -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); });
|
||||
|
||||
@@ -1352,7 +1352,7 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
run()
|
||||
run() override
|
||||
{
|
||||
source_currencies_limit();
|
||||
no_direct_path_no_intermediary_no_alternatives();
|
||||
|
||||
@@ -623,7 +623,7 @@ public:
|
||||
lastRotated = ledgerSeq - 1;
|
||||
}
|
||||
|
||||
void run()
|
||||
void run() override
|
||||
{
|
||||
testClear();
|
||||
testAutomatic();
|
||||
|
||||
@@ -92,7 +92,7 @@ public:
|
||||
env(jv, ter(temINVALID_FLAG));
|
||||
}
|
||||
|
||||
void run()
|
||||
void run() override
|
||||
{
|
||||
testDisableMasterKey();
|
||||
testPasswordSpent();
|
||||
|
||||
@@ -204,7 +204,7 @@ public:
|
||||
|
||||
}
|
||||
|
||||
void run()
|
||||
void run() override
|
||||
{
|
||||
testFreeTrustlines(true, false);
|
||||
testFreeTrustlines(false, true);
|
||||
|
||||
@@ -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 ();
|
||||
|
||||
@@ -379,7 +379,7 @@ class Ticket_test : public beast::unit_test::suite
|
||||
}
|
||||
|
||||
public:
|
||||
void run ()
|
||||
void run () override
|
||||
{
|
||||
testTicketNotEnabled ();
|
||||
testTicketCancelNonexistent ();
|
||||
|
||||
@@ -487,7 +487,7 @@ class TrustAndBalance_test : public beast::unit_test::suite
|
||||
}
|
||||
|
||||
public:
|
||||
void run ()
|
||||
void run () override
|
||||
{
|
||||
testTrustNonexistent ();
|
||||
testCreditLimit ();
|
||||
|
||||
@@ -2774,7 +2774,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void run()
|
||||
void run() override
|
||||
{
|
||||
testQueue();
|
||||
testLocalTxRetry();
|
||||
|
||||
Reference in New Issue
Block a user