mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:57:46 +00:00
WindowServer: Fix a handful of clang-tidy warnings in the menu code
Some avoidable signed/unsigned mismatch, String move construction, and functions that can be static constexpr.
This commit is contained in:
parent
cbb06d7014
commit
4c6e3d0c59
4 changed files with 17 additions and 17 deletions
|
@ -42,10 +42,10 @@ public:
|
|||
void set_default(bool);
|
||||
|
||||
String text() const { return m_text; }
|
||||
void set_text(const String& text) { m_text = text; }
|
||||
void set_text(String text) { m_text = move(text); }
|
||||
|
||||
String shortcut_text() const { return m_shortcut_text; }
|
||||
void set_shortcut_text(const String& text) { m_shortcut_text = text; }
|
||||
void set_shortcut_text(String text) { m_shortcut_text = move(text); }
|
||||
|
||||
void set_rect(const Gfx::IntRect& rect) { m_rect = rect; }
|
||||
Gfx::IntRect rect() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue