summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test-Sockets.cc6
-rw-r--r--tests/test-Tasks.cc2
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/test-Sockets.cc b/tests/test-Sockets.cc
index 073548a..a3e2755 100644
--- a/tests/test-Sockets.cc
+++ b/tests/test-Sockets.cc
@@ -6,7 +6,7 @@ using namespace Balau;
class Worker : public Task {
public:
Worker(IO<Socket> io, void *);
- virtual const char * getName();
+ virtual const char * getName() const;
virtual void Do();
IO<Socket> m_io;
String m_name;
@@ -17,7 +17,7 @@ Worker::Worker(IO<Socket> io, void *) : m_io(io) {
Printer::log(M_STATUS, "Got connection: %s", m_name.to_charp());
}
-const char * Worker::getName() {
+const char * Worker::getName() const {
return m_name.to_charp();
}
@@ -37,7 +37,7 @@ Listener<Worker> * listener;
class Client : public Task {
public:
- virtual const char * getName() { return "Test client"; }
+ virtual const char * getName() const { return "Test client"; }
virtual void Do() {
Events::Timeout evt(0.1);
waitFor(&evt);
diff --git a/tests/test-Tasks.cc b/tests/test-Tasks.cc
index 4b26406..272e61d 100644
--- a/tests/test-Tasks.cc
+++ b/tests/test-Tasks.cc
@@ -11,7 +11,7 @@ static CustomPrinter * customPrinter = NULL;
class TestTask : public Task {
public:
- virtual const char * getName() { return "MainTask"; }
+ virtual const char * getName() const { return "TestTask"; }
private:
virtual void Do() {
customPrinter->setLocal();