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:
@@ -184,7 +184,7 @@ class AccountCurrencies_test : public beast::unit_test::suite
|
||||
}
|
||||
|
||||
public:
|
||||
void run ()
|
||||
void run () override
|
||||
{
|
||||
testBadInput ();
|
||||
testBasic ();
|
||||
|
||||
@@ -314,7 +314,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void run()
|
||||
void run() override
|
||||
{
|
||||
testErrors();
|
||||
testSignerLists();
|
||||
|
||||
@@ -863,7 +863,7 @@ public:
|
||||
BEAST_EXPECT(linesEnd.isMember(jss::id) && linesEnd[jss::id] == 5);
|
||||
}
|
||||
|
||||
void run ()
|
||||
void run () override
|
||||
{
|
||||
testAccountLines();
|
||||
testAccountLineDelete();
|
||||
|
||||
@@ -267,7 +267,7 @@ public:
|
||||
|
||||
}
|
||||
|
||||
void run()
|
||||
void run() override
|
||||
{
|
||||
testSequential(true);
|
||||
testSequential(false);
|
||||
|
||||
@@ -438,7 +438,7 @@ public:
|
||||
env(fset (alice, asfRequireAuth), ter(tecOWNERS));
|
||||
}
|
||||
|
||||
void run()
|
||||
void run() override
|
||||
{
|
||||
testNullAccountSet();
|
||||
testMostFlags();
|
||||
|
||||
@@ -166,7 +166,7 @@ class AccountTX_test : public beast::unit_test::suite
|
||||
|
||||
public:
|
||||
void
|
||||
run()
|
||||
run() override
|
||||
{
|
||||
testParameters();
|
||||
}
|
||||
|
||||
@@ -157,7 +157,7 @@ class AmendmentBlocked_test : public beast::unit_test::suite
|
||||
}
|
||||
|
||||
public:
|
||||
void run()
|
||||
void run() override
|
||||
{
|
||||
testBlockedMethods();
|
||||
}
|
||||
|
||||
@@ -216,7 +216,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void run()
|
||||
void run() override
|
||||
{
|
||||
testValid();
|
||||
testErrors();
|
||||
|
||||
@@ -106,7 +106,7 @@ class GetCounts_test : public beast::unit_test::suite
|
||||
}
|
||||
|
||||
public:
|
||||
void run ()
|
||||
void run () override
|
||||
{
|
||||
testGetCounts();
|
||||
}
|
||||
|
||||
@@ -2353,7 +2353,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void run ()
|
||||
void run () override
|
||||
{
|
||||
testBadRpcCommand ();
|
||||
testAutoFillFees ();
|
||||
|
||||
@@ -709,7 +709,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void run()
|
||||
void run() override
|
||||
{
|
||||
testKeyType (boost::none, secp256k1_strings);
|
||||
testKeyType (std::string("secp256k1"), secp256k1_strings);
|
||||
|
||||
@@ -52,7 +52,7 @@ public:
|
||||
BEAST_EXPECT(lc_result[jss::ledger_index] == 3);
|
||||
}
|
||||
|
||||
void run()
|
||||
void run() override
|
||||
{
|
||||
testMonitorRoot();
|
||||
}
|
||||
|
||||
@@ -436,7 +436,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void run()
|
||||
void run() override
|
||||
{
|
||||
testCurrentLedgerToLimits(true);
|
||||
testCurrentLedgerToLimits(false);
|
||||
|
||||
@@ -1500,7 +1500,7 @@ class LedgerRPC_test : public beast::unit_test::suite
|
||||
}
|
||||
|
||||
public:
|
||||
void run ()
|
||||
void run () override
|
||||
{
|
||||
testLedgerRequest();
|
||||
testBadInput();
|
||||
|
||||
@@ -291,7 +291,7 @@ public:
|
||||
|
||||
}
|
||||
|
||||
void run ()
|
||||
void run () override
|
||||
{
|
||||
testLedgerRequest();
|
||||
testEvolution();
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -208,7 +208,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void run ()
|
||||
void run () override
|
||||
{
|
||||
testSetAndClear();
|
||||
|
||||
|
||||
@@ -201,7 +201,7 @@ class OwnerInfo_test : public beast::unit_test::suite
|
||||
}
|
||||
|
||||
public:
|
||||
void run ()
|
||||
void run () override
|
||||
{
|
||||
testBadInput ();
|
||||
testBasic ();
|
||||
|
||||
@@ -85,7 +85,7 @@ class Peers_test : public beast::unit_test::suite
|
||||
}
|
||||
|
||||
public:
|
||||
void run ()
|
||||
void run () override
|
||||
{
|
||||
testRequest();
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void run ()
|
||||
void run () override
|
||||
{
|
||||
testServerInfo ();
|
||||
}
|
||||
|
||||
@@ -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 ();
|
||||
|
||||
@@ -242,7 +242,7 @@ class TransactionEntry_test : public beast::unit_test::suite
|
||||
}
|
||||
|
||||
public:
|
||||
void run ()
|
||||
void run () override
|
||||
{
|
||||
testBadInput();
|
||||
testRequest();
|
||||
|
||||
@@ -142,7 +142,7 @@ class TransactionHistory_test : public beast::unit_test::suite
|
||||
}
|
||||
|
||||
public:
|
||||
void run ()
|
||||
void run () override
|
||||
{
|
||||
testBadInput();
|
||||
testRequest();
|
||||
|
||||
@@ -399,7 +399,7 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
run()
|
||||
run() override
|
||||
{
|
||||
testPrivileges();
|
||||
testStaticUNL();
|
||||
|
||||
Reference in New Issue
Block a user