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:
@@ -84,7 +84,7 @@ public:
|
||||
BEAST_EXPECT(to_packed (from_version (65535, 65535)) == 4294967295);
|
||||
}
|
||||
|
||||
void run ()
|
||||
void run () override
|
||||
{
|
||||
testValues ();
|
||||
testStringVersion ();
|
||||
|
||||
@@ -246,7 +246,7 @@ public:
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
void run ()
|
||||
void run () override
|
||||
{
|
||||
testZero ();
|
||||
testSigNum ();
|
||||
|
||||
@@ -171,7 +171,7 @@ static TestJSONTxt const testArray[] =
|
||||
class InnerObjectFormatsParsedJSON_test : public beast::unit_test::suite
|
||||
{
|
||||
public:
|
||||
void run()
|
||||
void run() override
|
||||
{
|
||||
using namespace InnerObjectFormatsUnitTestDetail;
|
||||
|
||||
|
||||
@@ -456,7 +456,7 @@ public:
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
void run()
|
||||
void run() override
|
||||
{
|
||||
testcase ("Currency");
|
||||
testUnsigned <Currency> ();
|
||||
|
||||
@@ -347,7 +347,7 @@ public:
|
||||
BEAST_EXPECT(qa < qb);
|
||||
}
|
||||
void
|
||||
run()
|
||||
run() override
|
||||
{
|
||||
test_comparisons ();
|
||||
test_composition ();
|
||||
|
||||
@@ -606,7 +606,7 @@ public:
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
void run ()
|
||||
void run () override
|
||||
{
|
||||
testSetValue ();
|
||||
testNativeCurrency ();
|
||||
|
||||
@@ -632,7 +632,7 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
run()
|
||||
run() override
|
||||
{
|
||||
// Instantiate a jtx::Env so debugLog writes are exercised.
|
||||
test::jtx::Env env (*this);
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace ripple {
|
||||
class STTx_test : public beast::unit_test::suite
|
||||
{
|
||||
public:
|
||||
void run()
|
||||
void run() override
|
||||
{
|
||||
testcase ("overly nested transactions");
|
||||
testDeepNesting();
|
||||
@@ -1292,7 +1292,7 @@ public:
|
||||
class InnerObjectFormatsSerializer_test : public beast::unit_test::suite
|
||||
{
|
||||
public:
|
||||
void run()
|
||||
void run() override
|
||||
{
|
||||
auto const kp1 = randomKeyPair (KeyType::secp256k1);
|
||||
auto const id1 = calcAccountID(kp1.first);
|
||||
|
||||
@@ -108,7 +108,7 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
run()
|
||||
run() override
|
||||
{
|
||||
testDeserialization();
|
||||
}
|
||||
|
||||
@@ -190,7 +190,7 @@ public:
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
void run ()
|
||||
void run () override
|
||||
{
|
||||
testSigNum ();
|
||||
testBeastZero ();
|
||||
|
||||
@@ -148,7 +148,7 @@ public:
|
||||
pass ();
|
||||
}
|
||||
|
||||
void run ()
|
||||
void run () override
|
||||
{
|
||||
testSHA512 ();
|
||||
testSHA256 ();
|
||||
|
||||
Reference in New Issue
Block a user