Skip to content

Commit ebe7ec7

Browse files
committed
reduce warnings
1 parent f51e926 commit ebe7ec7

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

cpp-terminal/event.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Event
3232
Cursor,
3333
Focus,
3434
Mouse,
35-
CopyPaste,
35+
CopyPaste
3636
};
3737
~Event();
3838
Event();

cpp-terminal/focus.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Focus
2525
{
2626
Unknown = -1, ///< The terminal focus is \b unknown.
2727
Out = 0, ///< The terminal focus is \b out.
28-
In = 1, ///< The terminal focus is \b in.
28+
In = 1 ///< The terminal focus is \b in.
2929
};
3030

3131
Focus() = default;

cpp-terminal/key.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class MetaKey
2323
// Last utf8 codepoint is U+10FFFF (000100001111111111111111) So:
2424
None = 0,
2525
Alt = (1UL << 22UL),
26-
Ctrl = (1UL << 23UL),
26+
Ctrl = (1UL << 23UL)
2727
};
2828

2929
constexpr MetaKey() : value(static_cast<std::int32_t>(Value::None)) {}
@@ -270,7 +270,7 @@ class Key
270270
F23 = 0x10FFFF + 33,
271271
F24 = 0x10FFFF + 34,
272272
PrintScreen = 0x10FFFF + 35,
273-
Menu = 0x10FFFF + 36,
273+
Menu = 0x10FFFF + 36
274274
};
275275

276276
constexpr Key() : value(NoKey) {}

cpp-terminal/mouse.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Button
3131
Button5,
3232
Button6,
3333
Button7,
34-
Button8,
34+
Button8
3535
};
3636
enum class Action : std::int8_t
3737
{
@@ -42,7 +42,7 @@ class Button
4242
RolledUp,
4343
RolledDown,
4444
ToRight,
45-
ToLeft,
45+
ToLeft
4646
};
4747
Button() = default;
4848
Button(const Term::Button::Type& type, const Term::Button::Action& action) : m_type(type), m_action(action) {}

cpp-terminal/position.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ class Position
4141
{
4242
public:
4343
Position() = default;
44-
Position(const Row& row, const Column& column) : m_row(row), m_column(column) {};
45-
Position(const Column& column, const Row& row) : m_row(row), m_column(column) {};
44+
Position(const Row& row, const Column& column) : m_row(row), m_column(column) {}
45+
Position(const Column& column, const Row& row) : m_row(row), m_column(column) {}
4646
const Row& row() const noexcept { return m_row; }
4747
const Column& column() const noexcept { return m_column; }
4848

cpp-terminal/size.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ class Size
4141
{
4242
public:
4343
Size() = default;
44-
Size(const Rows& rows, const Columns& columns) : m_rows(rows), m_columns(columns) {};
45-
Size(const Columns& columns, const Rows& rows) : m_rows(rows), m_columns(columns) {};
44+
Size(const Rows& rows, const Columns& columns) : m_rows(rows), m_columns(columns) {}
45+
Size(const Columns& columns, const Rows& rows) : m_rows(rows), m_columns(columns) {}
4646
std::size_t area() const noexcept { return static_cast<std::size_t>(m_rows) * static_cast<std::size_t>(m_columns); }
4747
const Rows& rows() const noexcept { return m_rows; }
4848
const Columns& columns() const noexcept { return m_columns; }

cpp-terminal/terminfo.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ class Terminfo
3737
};
3838
enum class Bool : std::uint8_t
3939
{
40-
UTF8 = 0, ///< terminal has UTF-8 activated.
41-
Legacy, ///< Terminal is in legacy mode (Windows only).
42-
ControlSequences, ///< Terminal support control sequences.
40+
UTF8 = 0, ///< terminal has UTF-8 activated.
41+
Legacy, ///< Terminal is in legacy mode (Windows only).
42+
ControlSequences ///< Terminal support control sequences.
4343
};
4444
enum class String : std::uint8_t
4545
{
46-
TermEnv, ///< TERM environment variable value.
47-
TermName, ///< Name of the terminal program if available.
48-
TermVersion, ///< Terminal version.
46+
TermEnv, ///< TERM environment variable value.
47+
TermName, ///< Name of the terminal program if available.
48+
TermVersion ///< Terminal version.
4949
};
5050
enum class Integer : std::uint8_t
5151
{

0 commit comments

Comments
 (0)