Skip to content

Commit

Permalink
Add final where possible - server (#1798)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pirulax committed Dec 9, 2020
1 parent 2ff692b commit dfcc694
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/CConsoleClient.h
Expand Up @@ -16,7 +16,7 @@
#include "CConsole.h"
#include "CLogger.h"

class CConsoleClient : public CElement, public CClient
class CConsoleClient final : public CElement, public CClient
{
public:
CConsoleClient(CConsole* pConsole);
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/CDummy.h
Expand Up @@ -13,7 +13,7 @@

#include "CElement.h"

class CDummy : public CElement
class CDummy final : public CElement
{
public:
CDummy(class CGroups* pGroups, CElement* pParent);
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/CElement.h
Expand Up @@ -44,7 +44,7 @@ typedef CFastList<CElement*> CChildListType;
typedef CFastList<CElement*> CElementListType;

// List of elements which is auto deleted when the last user calls Release()
class CElementListSnapshot : public std::vector<CElement*>, public CRefCountableST
class CElementListSnapshot final : public std::vector<CElement*>, public CRefCountableST
{
};

Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/CPickup.h
Expand Up @@ -19,7 +19,7 @@ class CPickup;
#include "CElement.h"
#include "CEvents.h"

class CPickup : public CElement, private CColCallback
class CPickup final : public CElement, private CColCallback
{
friend class CPickupManager;

Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/CPlayer.h
Expand Up @@ -65,7 +65,7 @@ struct SScreenShotInfo
CBuffer buffer;
};

class CPlayer : public CPed, public CClient
class CPlayer final : public CPed, public CClient
{
friend class CElement;
friend class CScriptDebugging;
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/CScriptFile.h
Expand Up @@ -15,7 +15,7 @@
#include <stdio.h>
#include <string>

class CScriptFile : public CElement
class CScriptFile final : public CElement
{
public:
enum eMode
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/CTeam.h
Expand Up @@ -19,7 +19,7 @@ class CTeam;

#define MAX_TEAM_NAME 128

class CTeam : public CElement
class CTeam final : public CElement
{
friend class CTeamManager;

Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/CTrainTrack.h
Expand Up @@ -27,7 +27,7 @@ struct STrackNode
STrackNode() {}
};

class CTrainTrack : public CElement
class CTrainTrack final : public CElement
{
public:
CTrainTrack(CTrainTrackManager* pManager, const std::vector<STrackNode>& nodes, bool linkLastNodes, CElement* pParent, uchar defaultTrackId = 0xFF);
Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/CVehicle.h
Expand Up @@ -138,7 +138,7 @@ struct SSirenInfo

class CTrainTrack;

class CVehicle : public CElement
class CVehicle final : public CElement
{
friend class CPlayer;

Expand Down
2 changes: 1 addition & 1 deletion Server/mods/deathmatch/logic/CWater.h
Expand Up @@ -13,7 +13,7 @@

class CWaterManager;

class CWater : public CElement
class CWater final : public CElement
{
public:
enum EWaterType
Expand Down

0 comments on commit dfcc694

Please sign in to comment.