Skip to content

Commit 5d3ab55

Browse files
committed
backend: frontend: Mark class BackEnd and FrontEnd final
These cannot be used to make a derived class. Also change the protected section to private. Signed-off-by: Naushir Patuck <[email protected]>
1 parent 999da5a commit 5d3ab55

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/libpisp/backend/backend.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
namespace libpisp
2323
{
2424

25-
class BackEnd
25+
class BackEnd final
2626
{
2727
public:
2828
struct Config
@@ -146,7 +146,7 @@ class BackEnd
146146
return mutex_.try_lock();
147147
}
148148

149-
protected:
149+
private:
150150
void finaliseConfig();
151151
void updateSmartResize();
152152
void updateTiles();
@@ -168,7 +168,6 @@ class BackEnd
168168
std::vector<SmartResize> smart_resize_;
169169
uint32_t smart_resize_dirty_;
170170

171-
private:
172171
// Default config
173172
std::map<std::string, pisp_be_ccm_config> ycbcr_map_;
174173
std::map<std::string, pisp_be_ccm_config> inverse_ycbcr_map_;

src/libpisp/frontend/frontend.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
namespace libpisp
2020
{
2121

22-
class FrontEnd
22+
class FrontEnd final
2323
{
2424
public:
2525
static constexpr uint32_t ScalePrecision = 10;
@@ -70,7 +70,7 @@ class FrontEnd
7070
return mutex_.try_lock();
7171
}
7272

73-
protected: // TODO: Should be private
73+
private:
7474
void getOutputSize(unsigned int output_num, uint16_t &width, uint16_t &height) const;
7575

7676
const PiSPVariant &variant_;

0 commit comments

Comments
 (0)