Skip to content

Commit 65ab193

Browse files
Morel BérengerVReaperV
Morel Bérenger
authored andcommitted
use final keyword in some places
1 parent e5d390d commit 65ab193

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

src/engine/renderer/tr_local.h

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3843,23 +3843,23 @@ void GLimp_LogComment_( std::string comment );
38433843
virtual const RenderCommand *ExecuteSelf() const = 0;
38443844
};
38453845

3846-
struct SetColorCommand : public RenderCommand {
3846+
struct SetColorCommand final : public RenderCommand {
38473847
const RenderCommand *ExecuteSelf() const override;
38483848

38493849
Color::Color color;
38503850
};
3851-
struct SetColorGradingCommand : public RenderCommand {
3851+
struct SetColorGradingCommand final : public RenderCommand {
38523852
const RenderCommand *ExecuteSelf() const override;
38533853

38543854
image_t *image;
38553855
int slot;
38563856
};
3857-
struct DrawBufferCommand : public RenderCommand {
3857+
struct DrawBufferCommand final : public RenderCommand {
38583858
const RenderCommand *ExecuteSelf() const override;
38593859

38603860
int buffer;
38613861
};
3862-
struct SwapBuffersCommand : public RenderCommand {
3862+
struct SwapBuffersCommand final : public RenderCommand {
38633863
const RenderCommand *ExecuteSelf() const override;
38643864
};
38653865
struct StretchPicCommand : public RenderCommand {
@@ -3871,25 +3871,25 @@ void GLimp_LogComment_( std::string comment );
38713871
float s1, t1;
38723872
float s2, t2;
38733873
};
3874-
struct RotatedPicCommand : public StretchPicCommand {
3874+
struct RotatedPicCommand final : public StretchPicCommand {
38753875
const RenderCommand *ExecuteSelf() const override;
38763876

38773877
float angle;
38783878
};
3879-
struct GradientPicCommand : public StretchPicCommand {
3879+
struct GradientPicCommand final : public StretchPicCommand {
38803880
const RenderCommand *ExecuteSelf() const override;
38813881

38823882
Color::Color32Bit gradientColor; // color values 0-255
38833883
int gradientType;
38843884
};
3885-
struct Poly2dCommand : public RenderCommand {
3885+
struct Poly2dCommand final : public RenderCommand {
38863886
const RenderCommand *ExecuteSelf() const override;
38873887

38883888
polyVert_t *verts;
38893889
int numverts;
38903890
shader_t *shader;
38913891
};
3892-
struct Poly2dIndexedCommand : public RenderCommand {
3892+
struct Poly2dIndexedCommand final : public RenderCommand {
38933893
const RenderCommand *ExecuteSelf() const override;
38943894

38953895
polyVert_t *verts;
@@ -3899,30 +3899,30 @@ void GLimp_LogComment_( std::string comment );
38993899
shader_t *shader;
39003900
int translation[2];
39013901
};
3902-
struct ScissorSetCommand : public RenderCommand {
3902+
struct ScissorSetCommand final : public RenderCommand {
39033903
const RenderCommand *ExecuteSelf() const override;
39043904

39053905
int x;
39063906
int y;
39073907
int w;
39083908
int h;
39093909
};
3910-
struct SetMatrixTransformCommand : public RenderCommand {
3910+
struct SetMatrixTransformCommand final : public RenderCommand {
39113911
const RenderCommand *ExecuteSelf() const override;
39123912

39133913
matrix_t matrix;
39143914
};
3915-
struct ResetMatrixTransformCommand : public RenderCommand {
3915+
struct ResetMatrixTransformCommand final : public RenderCommand {
39163916
const RenderCommand *ExecuteSelf() const override;
39173917
};
3918-
struct DrawViewCommand : public RenderCommand {
3918+
struct DrawViewCommand final : public RenderCommand {
39193919
const RenderCommand *ExecuteSelf() const override;
39203920

39213921
trRefdef_t refdef;
39223922
viewParms_t viewParms;
39233923
bool depthPass;
39243924
};
3925-
struct SetupLightsCommand : public RenderCommand {
3925+
struct SetupLightsCommand final : public RenderCommand {
39263926
const RenderCommand *ExecuteSelf() const override;
39273927

39283928
trRefdef_t refdef;
@@ -3933,7 +3933,7 @@ void GLimp_LogComment_( std::string comment );
39333933
SSF_JPEG,
39343934
SSF_PNG
39353935
};
3936-
struct ScreenshotCommand : public RenderCommand {
3936+
struct ScreenshotCommand final : public RenderCommand {
39373937
const RenderCommand *ExecuteSelf() const override;
39383938

39393939
int x;
@@ -3943,7 +3943,7 @@ void GLimp_LogComment_( std::string comment );
39433943
char fileName[MAX_OSPATH];
39443944
ssFormat_t format;
39453945
};
3946-
struct VideoFrameCommand : public RenderCommand {
3946+
struct VideoFrameCommand final : public RenderCommand {
39473947
const RenderCommand *ExecuteSelf() const override;
39483948

39493949
int width;
@@ -3952,33 +3952,33 @@ void GLimp_LogComment_( std::string comment );
39523952
byte *encodeBuffer;
39533953
bool motionJpeg;
39543954
};
3955-
struct RenderPostProcessCommand : public RenderCommand {
3955+
struct RenderPostProcessCommand final : public RenderCommand {
39563956
const RenderCommand *ExecuteSelf() const override;
39573957

39583958
trRefdef_t refdef;
39593959
viewParms_t viewParms;
39603960
};
3961-
struct ClearBufferCommand : public RenderCommand {
3961+
struct ClearBufferCommand final : public RenderCommand {
39623962
const RenderCommand *ExecuteSelf() const override;
39633963

39643964
trRefdef_t refdef;
39653965
viewParms_t viewParms;
39663966
};
3967-
struct PreparePortalCommand : public RenderCommand {
3967+
struct PreparePortalCommand final : public RenderCommand {
39683968
const RenderCommand *ExecuteSelf() const override;
39693969

39703970
trRefdef_t refdef;
39713971
viewParms_t viewParms;
39723972
drawSurf_t *surface;
39733973
};
3974-
struct FinalisePortalCommand : public RenderCommand {
3974+
struct FinalisePortalCommand final : public RenderCommand {
39753975
const RenderCommand *ExecuteSelf() const override;
39763976

39773977
trRefdef_t refdef;
39783978
viewParms_t viewParms;
39793979
drawSurf_t *surface;
39803980
};
3981-
struct EndOfListCommand : public RenderCommand {
3981+
struct EndOfListCommand final : public RenderCommand {
39823982
const RenderCommand *ExecuteSelf() const override;
39833983
};
39843984

0 commit comments

Comments
 (0)