Skip to content

Commit

Permalink
Fix mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
bruhmoent committed Nov 15, 2024
1 parent 09a39a1 commit 2cbed93
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
5 changes: 0 additions & 5 deletions src/gui/color_clipboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@

#include "color_clipboard.hpp"

ColorClipboard::ColorClipboard()
{
m_color = std::make_unique<Color>(Color::WHITE);
}

ColorClipboard&
ColorClipboard::instance()
{
Expand Down
2 changes: 1 addition & 1 deletion src/gui/color_clipboard.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
class ColorClipboard
{
public:
ColorClipboard();
ColorClipboard() : m_color(std::make_unique<Color>(Color::WHITE)) {}
~ColorClipboard() = default;

static ColorClipboard& instance();
Expand Down
4 changes: 1 addition & 3 deletions src/gui/menu_color.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

#include "gui/menu_color.hpp"
#include "menu_item.hpp"
#include "item_action.hpp"

#include "util/gettext.hpp"

Expand Down Expand Up @@ -52,8 +51,7 @@ ColorMenu::menu_action(MenuItem& item)
{
clipboard.set_color(*color);
MenuItem& menu_paste_item = get_item_by_id(2);
if (&menu_paste_item)
menu_paste_item.set_text_color(*color);
menu_paste_item.set_text_color(*color);
}
else if (item.get_id() == 2)
{
Expand Down

0 comments on commit 2cbed93

Please sign in to comment.