Skip to content

Commit

Permalink
More classes with final specifier
Browse files Browse the repository at this point in the history
  • Loading branch information
gansm committed Aug 5, 2023
1 parent f342532 commit 5132007
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions final/eventloop/kqueue_timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ static std::vector<struct kevent> time_events{};
// class KqueueHandler
//----------------------------------------------------------------------

class KqueueHandler
class KqueueHandler final
{
public:
// Constructor
Expand Down Expand Up @@ -212,7 +212,7 @@ void KqueueTimer::init (handler_t hdl, void* uc)

setFileDescriptor (getKqueue());
setEvents (POLLIN);
setHandler (std::move(KqueueHandler()));
setHandler (KqueueHandler());
setUserContext (uc);
timer_id = getTimerID();
timer_handler = std::move(hdl);
Expand Down Expand Up @@ -250,7 +250,7 @@ void KqueueTimer::trigger (short return_events)
// struct KqueueHandlerInstaller
//----------------------------------------------------------------------

struct KqueueHandlerInstaller
struct KqueueHandlerInstaller final
{
// constructor
KqueueHandlerInstaller()
Expand Down
6 changes: 3 additions & 3 deletions final/eventloop/posix_timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ namespace finalcut
// struct TimerNode
//----------------------------------------------------------------------

struct TimerNode
struct TimerNode final
{
public:
// Constructor
Expand Down Expand Up @@ -91,7 +91,7 @@ static std::list<TimerNode> timer_nodes{};
// class SigAlrmHandler
//----------------------------------------------------------------------

class SigAlrmHandler
class SigAlrmHandler final
{
public:
// Using-declaration
Expand Down Expand Up @@ -240,7 +240,7 @@ void PosixTimer::trigger (short return_events)
// class SigAlrmHandlerInstaller
//----------------------------------------------------------------------

class SigAlrmHandlerInstaller
class SigAlrmHandlerInstaller final
{
public:
SigAlrmHandlerInstaller() // constructor
Expand Down

0 comments on commit 5132007

Please sign in to comment.