aboutsummaryrefslogtreecommitdiffstats
path: root/fnet/src/tests/locking
diff options
context:
space:
mode:
Diffstat (limited to 'fnet/src/tests/locking')
-rw-r--r--fnet/src/tests/locking/castspeed.cpp4
-rw-r--r--fnet/src/tests/locking/drainpackets.cpp6
2 files changed, 4 insertions, 6 deletions
diff --git a/fnet/src/tests/locking/castspeed.cpp b/fnet/src/tests/locking/castspeed.cpp
index 1f57bc4757c..859ec08ec69 100644
--- a/fnet/src/tests/locking/castspeed.cpp
+++ b/fnet/src/tests/locking/castspeed.cpp
@@ -18,14 +18,14 @@ class C: public A
{
public:
B *otherB;
- virtual B* asB() override { return otherB; }
+ B* asB() override { return otherB; }
C() : otherB(nullptr) {}
};
class B: public C
{
public:
- virtual B* asB() override { return this; }
+ B* asB() override { return this; }
};
diff --git a/fnet/src/tests/locking/drainpackets.cpp b/fnet/src/tests/locking/drainpackets.cpp
index fb86371c9ec..b453793843f 100644
--- a/fnet/src/tests/locking/drainpackets.cpp
+++ b/fnet/src/tests/locking/drainpackets.cpp
@@ -2,15 +2,13 @@
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/fnet/fnet.h>
-
class MyPacket : public FNET_Packet
{
public:
- uint32_t GetPCODE() override { return 0; }
+ uint32_t GetPCODE() override { return 0; }
uint32_t GetLength() override { return 0; }
void Encode(FNET_DataBuffer *) override {}
- bool Decode(FNET_DataBuffer *, uint32_t) override
- { return true; }
+ bool Decode(FNET_DataBuffer *, uint32_t) override { return true; }
};