Skip to content

Commit

Permalink
Remove trailing semicolons after function definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Robyt3 committed Dec 30, 2024
1 parent 877fc20 commit 28e5744
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ IndentWidth: 8
KeepEmptyLinesAtTheStartOfBlocks: false
PointerAlignment: Right
ReflowComments: true
RemoveSemicolon: true
SpaceBeforeParens: Never
SpaceAfterTemplateKeyword: false
TabWidth: 8
Expand Down
2 changes: 1 addition & 1 deletion src/engine/client/backend/null/backend_null.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class CCommandProcessorFragment_Null : public CCommandProcessorFragment_GLBase
{
bool GetPresentedImageData(uint32_t &Width, uint32_t &Height, CImageInfo::EImageFormat &Format, std::vector<uint8_t> &vDstData) override { return false; };
bool GetPresentedImageData(uint32_t &Width, uint32_t &Height, CImageInfo::EImageFormat &Format, std::vector<uint8_t> &vDstData) override { return false; }
ERunCommandReturnTypes RunCommand(const CCommandBuffer::SCommand *pBaseCommand) override;
bool Cmd_Init(const SCommand_Init *pCommand);
virtual void Cmd_Texture_Create(const CCommandBuffer::SCommand_Texture_Create *pCommand);
Expand Down
2 changes: 1 addition & 1 deletion src/engine/client/backend/opengl/backend_opengl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ static const char *GetGLErrorName(GLenum Type)
else if(Type == GL_DEBUG_TYPE_POP_GROUP)
return "POP_GROUP";
return "UNKNOWN";
};
}

static const char *GetGLSeverity(GLenum Type)
{
Expand Down
4 changes: 2 additions & 2 deletions src/game/client/gameclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -522,12 +522,12 @@ class CGameClient : public IGameClient
{
m_Active = true;
m_JoinTick = Tick;
};
}
void JoinSpec(int Tick)
{
m_Active = false;
m_IngameTicks += Tick - m_JoinTick;
};
}
int GetIngameTicks(int Tick) const { return m_IngameTicks + Tick - m_JoinTick; }
float GetFPM(int Tick, int TickSpeed) const { return (float)(m_Frags * TickSpeed * 60) / GetIngameTicks(Tick); }
};
Expand Down
2 changes: 1 addition & 1 deletion src/game/client/prediction/entities/character.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class CCharacter : public CEntity
{
m_Input.m_TargetY = m_LatestInput.m_TargetY = -1;
}
};
}
int GetJumped() { return m_Core.m_Jumped; }
int GetAttackTick() { return m_AttackTick; }
int GetStrongWeakId() { return m_StrongWeakId; }
Expand Down
2 changes: 1 addition & 1 deletion src/game/editor/editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6091,7 +6091,7 @@ void CEditor::RemoveTimeOffsetEnvelope(const std::shared_ptr<CEnvelope> &pEnvelo
Point.m_Time -= TimeOffset;

m_OffsetEnvelopeX += fxt2f(TimeOffset) / m_ZoomEnvelopeX.GetValue();
};
}

static float ClampDelta(float Val, float Delta, float Min, float Max)
{
Expand Down
2 changes: 1 addition & 1 deletion src/game/editor/editor_server_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ class CMapSettingsBackend : public CEditorComponent
const std::shared_ptr<IMapSetting> &Setting() const { return m_pCurrentSetting; }
CLineInput *LineInput() const { return m_pLineInput; }
void SetFontSize(float FontSize) { m_FontSize = FontSize; }
int CommentOffset() const { return m_CommentOffset; };
int CommentOffset() const { return m_CommentOffset; }

int CheckCollision(ECollisionCheckResult &Result) const;
int CheckCollision(const std::vector<CEditorMapSetting> &vSettings, ECollisionCheckResult &Result) const;
Expand Down
2 changes: 1 addition & 1 deletion src/game/editor/mapitems/layer_tiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ static void InitGrabbedLayer(std::shared_ptr<T> pLayer, CLayerTiles *pThisLayer)
pLayer->m_Color = pThisLayer->m_Color;
pLayer->m_Color.a = 255;
}
};
}

int CLayerTiles::BrushGrab(std::shared_ptr<CLayerGroup> pBrush, CUIRect Rect)
{
Expand Down
4 changes: 2 additions & 2 deletions src/game/gamecore.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ class CCharacterCore
CCollision *m_pCollision;

public:
static constexpr float PhysicalSize() { return 28.0f; };
static constexpr vec2 PhysicalSizeVec2() { return vec2(28.0f, 28.0f); };
static constexpr float PhysicalSize() { return 28.0f; }
static constexpr vec2 PhysicalSizeVec2() { return vec2(28.0f, 28.0f); }
vec2 m_Pos;
vec2 m_Vel;

Expand Down

0 comments on commit 28e5744

Please sign in to comment.