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

@@ -84,7 +84,7 @@ public:
BEAST_EXPECT(to_packed (from_version (65535, 65535)) == 4294967295);
}
void run ()
void run () override
{
testValues ();
testStringVersion ();

View File

@@ -246,7 +246,7 @@ public:
//--------------------------------------------------------------------------
void run ()
void run () override
{
testZero ();
testSigNum ();

View File

@@ -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;

View File

@@ -456,7 +456,7 @@ public:
//--------------------------------------------------------------------------
void run()
void run() override
{
testcase ("Currency");
testUnsigned <Currency> ();

View File

@@ -347,7 +347,7 @@ public:
BEAST_EXPECT(qa < qb);
}
void
run()
run() override
{
test_comparisons ();
test_composition ();

View File

@@ -606,7 +606,7 @@ public:
//--------------------------------------------------------------------------
void run ()
void run () override
{
testSetValue ();
testNativeCurrency ();

View File

@@ -632,7 +632,7 @@ public:
}
void
run()
run() override
{
// Instantiate a jtx::Env so debugLog writes are exercised.
test::jtx::Env env (*this);

View File

@@ -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);

View File

@@ -108,7 +108,7 @@ public:
}
void
run()
run() override
{
testDeserialization();
}

View File

@@ -190,7 +190,7 @@ public:
//--------------------------------------------------------------------------
void run ()
void run () override
{
testSigNum ();
testBeastZero ();

View File

@@ -148,7 +148,7 @@ public:
pass ();
}
void run ()
void run () override
{
testSHA512 ();
testSHA256 ();