mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:37:34 +00:00
LibVideo: Migrate to east-const style & apply other minor fixes
This patch brings all of LibVideo up to the east-const style in the project. Additionally, it applies a few fixes from the reviews in #8170 that referred to older LibVideo code.
This commit is contained in:
parent
7d4053dde1
commit
988e17ed05
12 changed files with 48 additions and 50 deletions
|
@ -25,16 +25,16 @@ public:
|
|||
class TreeSelection {
|
||||
public:
|
||||
union TreeSelectionValue {
|
||||
const int* m_tree;
|
||||
int const* m_tree;
|
||||
int m_value;
|
||||
};
|
||||
|
||||
TreeSelection(const int* values);
|
||||
TreeSelection(int const* values);
|
||||
TreeSelection(int value);
|
||||
|
||||
bool is_single_value() const { return m_is_single_value; }
|
||||
int get_single_value() const { return m_value.m_value; }
|
||||
const int* get_tree_value() const { return m_value.m_tree; }
|
||||
int const* get_tree_value() const { return m_value.m_tree; }
|
||||
|
||||
private:
|
||||
bool m_is_single_value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue