Skip to content

Commit 2fc65bd

Browse files
Morel BérengerAntoine Fontaine
authored andcommitted
use final keyword in some places
1 parent 903fe95 commit 2fc65bd

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
@@ -3441,23 +3441,23 @@ void GLimp_LogComment_( std::string comment );
34413441
virtual const RenderCommand *ExecuteSelf() const = 0;
34423442
};
34433443

3444-
struct SetColorCommand : public RenderCommand {
3444+
struct SetColorCommand final : public RenderCommand {
34453445
const RenderCommand *ExecuteSelf() const override;
34463446

34473447
Color::Color color;
34483448
};
3449-
struct SetColorGradingCommand : public RenderCommand {
3449+
struct SetColorGradingCommand final : public RenderCommand {
34503450
const RenderCommand *ExecuteSelf() const override;
34513451

34523452
image_t *image;
34533453
int slot;
34543454
};
3455-
struct DrawBufferCommand : public RenderCommand {
3455+
struct DrawBufferCommand final : public RenderCommand {
34563456
const RenderCommand *ExecuteSelf() const override;
34573457

34583458
int buffer;
34593459
};
3460-
struct SwapBuffersCommand : public RenderCommand {
3460+
struct SwapBuffersCommand final : public RenderCommand {
34613461
const RenderCommand *ExecuteSelf() const override;
34623462
};
34633463
struct StretchPicCommand : public RenderCommand {
@@ -3469,25 +3469,25 @@ void GLimp_LogComment_( std::string comment );
34693469
float s1, t1;
34703470
float s2, t2;
34713471
};
3472-
struct RotatedPicCommand : public StretchPicCommand {
3472+
struct RotatedPicCommand final : public StretchPicCommand {
34733473
const RenderCommand *ExecuteSelf() const override;
34743474

34753475
float angle;
34763476
};
3477-
struct GradientPicCommand : public StretchPicCommand {
3477+
struct GradientPicCommand final : public StretchPicCommand {
34783478
const RenderCommand *ExecuteSelf() const override;
34793479

34803480
Color::Color32Bit gradientColor; // color values 0-255
34813481
int gradientType;
34823482
};
3483-
struct Poly2dCommand : public RenderCommand {
3483+
struct Poly2dCommand final : public RenderCommand {
34843484
const RenderCommand *ExecuteSelf() const override;
34853485

34863486
polyVert_t *verts;
34873487
int numverts;
34883488
shader_t *shader;
34893489
};
3490-
struct Poly2dIndexedCommand : public RenderCommand {
3490+
struct Poly2dIndexedCommand final : public RenderCommand {
34913491
const RenderCommand *ExecuteSelf() const override;
34923492

34933493
polyVert_t *verts;
@@ -3497,30 +3497,30 @@ void GLimp_LogComment_( std::string comment );
34973497
shader_t *shader;
34983498
int translation[2];
34993499
};
3500-
struct ScissorSetCommand : public RenderCommand {
3500+
struct ScissorSetCommand final : public RenderCommand {
35013501
const RenderCommand *ExecuteSelf() const override;
35023502

35033503
int x;
35043504
int y;
35053505
int w;
35063506
int h;
35073507
};
3508-
struct SetMatrixTransformCommand : public RenderCommand {
3508+
struct SetMatrixTransformCommand final : public RenderCommand {
35093509
const RenderCommand *ExecuteSelf() const override;
35103510

35113511
matrix_t matrix;
35123512
};
3513-
struct ResetMatrixTransformCommand : public RenderCommand {
3513+
struct ResetMatrixTransformCommand final : public RenderCommand {
35143514
const RenderCommand *ExecuteSelf() const override;
35153515
};
3516-
struct DrawViewCommand : public RenderCommand {
3516+
struct DrawViewCommand final : public RenderCommand {
35173517
const RenderCommand *ExecuteSelf() const override;
35183518

35193519
trRefdef_t refdef;
35203520
viewParms_t viewParms;
35213521
bool depthPass;
35223522
};
3523-
struct SetupLightsCommand : public RenderCommand {
3523+
struct SetupLightsCommand final : public RenderCommand {
35243524
const RenderCommand *ExecuteSelf() const override;
35253525

35263526
trRefdef_t refdef;
@@ -3531,7 +3531,7 @@ void GLimp_LogComment_( std::string comment );
35313531
SSF_JPEG,
35323532
SSF_PNG
35333533
};
3534-
struct ScreenshotCommand : public RenderCommand {
3534+
struct ScreenshotCommand final : public RenderCommand {
35353535
const RenderCommand *ExecuteSelf() const override;
35363536

35373537
int x;
@@ -3541,7 +3541,7 @@ void GLimp_LogComment_( std::string comment );
35413541
char fileName[MAX_OSPATH];
35423542
ssFormat_t format;
35433543
};
3544-
struct VideoFrameCommand : public RenderCommand {
3544+
struct VideoFrameCommand final : public RenderCommand {
35453545
const RenderCommand *ExecuteSelf() const override;
35463546

35473547
int width;
@@ -3550,33 +3550,33 @@ void GLimp_LogComment_( std::string comment );
35503550
byte *encodeBuffer;
35513551
bool motionJpeg;
35523552
};
3553-
struct RenderPostProcessCommand : public RenderCommand {
3553+
struct RenderPostProcessCommand final : public RenderCommand {
35543554
const RenderCommand *ExecuteSelf() const override;
35553555

35563556
trRefdef_t refdef;
35573557
viewParms_t viewParms;
35583558
};
3559-
struct ClearBufferCommand : public RenderCommand {
3559+
struct ClearBufferCommand final : public RenderCommand {
35603560
const RenderCommand *ExecuteSelf() const override;
35613561

35623562
trRefdef_t refdef;
35633563
viewParms_t viewParms;
35643564
};
3565-
struct PreparePortalCommand : public RenderCommand {
3565+
struct PreparePortalCommand final : public RenderCommand {
35663566
const RenderCommand *ExecuteSelf() const override;
35673567

35683568
trRefdef_t refdef;
35693569
viewParms_t viewParms;
35703570
drawSurf_t *surface;
35713571
};
3572-
struct FinalisePortalCommand : public RenderCommand {
3572+
struct FinalisePortalCommand final : public RenderCommand {
35733573
const RenderCommand *ExecuteSelf() const override;
35743574

35753575
trRefdef_t refdef;
35763576
viewParms_t viewParms;
35773577
drawSurf_t *surface;
35783578
};
3579-
struct EndOfListCommand : public RenderCommand {
3579+
struct EndOfListCommand final : public RenderCommand {
35803580
const RenderCommand *ExecuteSelf() const override;
35813581
};
35823582

0 commit comments

Comments
 (0)