Skip to content

Commit 380d2e9

Browse files
authored
Merge pull request #1687 from heinezen/feature/final_components
Make component classes `final`
2 parents 81a0a55 + 170e43f commit 380d2e9

File tree

9 files changed

+14
-14
lines changed

9 files changed

+14
-14
lines changed

libopenage/gamestate/component/api/idle.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021-2023 the openage authors. See copying.md for legal info.
1+
// Copyright 2021-2024 the openage authors. See copying.md for legal info.
22

33
#pragma once
44

@@ -7,7 +7,7 @@
77

88
namespace openage::gamestate::component {
99

10-
class Idle : public APIComponent {
10+
class Idle final : public APIComponent {
1111
public:
1212
using APIComponent::APIComponent;
1313

libopenage/gamestate/component/api/live.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515

1616
namespace openage::gamestate::component {
17-
class Live : public APIComponent {
17+
class Live final : public APIComponent {
1818
public:
1919
using APIComponent::APIComponent;
2020

libopenage/gamestate/component/api/move.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021-2023 the openage authors. See copying.md for legal info.
1+
// Copyright 2021-2024 the openage authors. See copying.md for legal info.
22

33
#pragma once
44

@@ -8,7 +8,7 @@
88

99
namespace openage::gamestate::component {
1010

11-
class Move : public APIComponent {
11+
class Move final : public APIComponent {
1212
public:
1313
using APIComponent::APIComponent;
1414

libopenage/gamestate/component/api/selectable.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2023-2023 the openage authors. See copying.md for legal info.
1+
// Copyright 2023-2024 the openage authors. See copying.md for legal info.
22

33
#pragma once
44

@@ -10,7 +10,7 @@
1010

1111
namespace openage::gamestate::component {
1212

13-
class Selectable : public APIComponent {
13+
class Selectable final : public APIComponent {
1414
public:
1515
using APIComponent::APIComponent;
1616

libopenage/gamestate/component/api/turn.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021-2023 the openage authors. See copying.md for legal info.
1+
// Copyright 2021-2024 the openage authors. See copying.md for legal info.
22

33
#pragma once
44

@@ -10,7 +10,7 @@
1010

1111
namespace openage::gamestate::component {
1212

13-
class Turn : public APIComponent {
13+
class Turn final : public APIComponent {
1414
public:
1515
using APIComponent::APIComponent;
1616

libopenage/gamestate/component/internal/activity.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Node;
2727

2828
namespace component {
2929

30-
class Activity : public InternalComponent {
30+
class Activity final : public InternalComponent {
3131
public:
3232
/**
3333
* Creates a new activity component.

libopenage/gamestate/component/internal/command_queue.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021-2023 the openage authors. See copying.md for legal info.
1+
// Copyright 2021-2024 the openage authors. See copying.md for legal info.
22

33
#pragma once
44

@@ -19,7 +19,7 @@ class EventLoop;
1919

2020
namespace gamestate::component {
2121

22-
class CommandQueue : public InternalComponent {
22+
class CommandQueue final : public InternalComponent {
2323
public:
2424
/**
2525
* Creates an Ownership component.

libopenage/gamestate/component/internal/ownership.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class EventLoop;
1919

2020
namespace gamestate::component {
2121

22-
class Ownership : public InternalComponent {
22+
class Ownership final : public InternalComponent {
2323
public:
2424
/**
2525
* Creates an Ownership component.

libopenage/gamestate/component/internal/position.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class EventLoop;
2020

2121
namespace gamestate::component {
2222

23-
class Position : public InternalComponent {
23+
class Position final : public InternalComponent {
2424
public:
2525
/**
2626
* Create a Position component.

0 commit comments

Comments
 (0)