Skip to content

Commit

Permalink
Use override keyword in more places.
Browse files Browse the repository at this point in the history
  • Loading branch information
wilx committed Dec 24, 2023
1 parent 6e9cbf6 commit 3780be0
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions include/log4cplus/helpers/connectorthread.h
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
// -*- C++ -*-
// Copyright (C) 2013-2017, Vaclav Zeman. All rights reserved.
//
//
// Redistribution and use in source and binary forms, with or without modifica-
// tion, are permitted provided that the following conditions are met:
//
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
//
// 2. Redistributions in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
//
//
// THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
Expand Down Expand Up @@ -76,8 +76,8 @@ class LOG4CPLUS_EXPORT ConnectorThread
//! \param client reference to ConnectorThread's client object
ConnectorThread (IConnectorThreadClient & client);
virtual ~ConnectorThread ();
virtual void run();

virtual void run() override;

//! Call this function to terminate ConnectorThread. The function
//! sets `exit_flag` and then triggers `trigger_ev` to wake up the
Expand All @@ -87,15 +87,15 @@ class LOG4CPLUS_EXPORT ConnectorThread
//! This function triggers (`trigger_ev`) connection check and
//! attempt to re-connect a broken connection, when necessary.
void trigger ();

protected:
//! reference to ConnectorThread's client
IConnectorThreadClient & ctc;

//! This event is the re-connection trigger.
thread::ManualResetEvent trigger_ev;

//! When this variable set to true when ConnectorThread is signaled to
//! When this variable set to true when ConnectorThread is signaled to
bool exit_flag;
};

Expand Down
4 changes: 2 additions & 2 deletions simpleserver/loggingserver.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class ReaperThread
~ReaperThread ()
{ }

virtual void run ();
virtual void run () override;

void signal_exit ();

Expand Down Expand Up @@ -176,7 +176,7 @@ class ClientThread
std::cout << "Client connection closed." << std::endl;
}

virtual void run();
virtual void run() override;

private:
log4cplus::thread::AbstractThreadPtr self_reference;
Expand Down
2 changes: 1 addition & 1 deletion src/asyncappender.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class QueueThread
public:
QueueThread (AsyncAppenderPtr, thread::QueuePtr);

void run() override;
virtual void run() override;

private:
AsyncAppenderPtr appenders;
Expand Down
2 changes: 1 addition & 1 deletion tests/thread_test/main.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class TestThread : public AbstractThread {
, logger(Logger::getInstance(LOG4CPLUS_TEXT("test.TestThread")))
{ }

virtual void run();
virtual void run() override;

private:
tstring name;
Expand Down

0 comments on commit 3780be0

Please sign in to comment.