summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2017-04-01 17:31:17 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2017-04-01 17:31:17 +0200
commit5efef2d31df144bc4300d24221764c73304c67a6 (patch)
tree484ae2aaeab4f6ab84d3de10ce0530549275b1af
parent74639e7f0a2bbdd63433c5c4d9779f9855681f2f (diff)
Fix FreeBSD compile error.
-rw-r--r--plugingui/frame.cc1
-rw-r--r--plugingui/frame.h1
2 files changed, 0 insertions, 2 deletions
diff --git a/plugingui/frame.cc b/plugingui/frame.cc
index f34eecf..6458a78 100644
--- a/plugingui/frame.cc
+++ b/plugingui/frame.cc
@@ -40,7 +40,6 @@ namespace GUI
FrameWidget::FrameWidget(Widget *parent, bool has_switch)
: Widget(parent)
- , has_switch(has_switch)
, is_switched_on(!has_switch)
, bar_height(24)
{
diff --git a/plugingui/frame.h b/plugingui/frame.h
index 1e900ee..c891b59 100644
--- a/plugingui/frame.h
+++ b/plugingui/frame.h
@@ -64,7 +64,6 @@ private:
std::size_t label_width;
// switch
- bool has_switch;
bool is_switched_on;
PowerButton power_button{this};