summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2017-05-06 20:34:03 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2017-05-06 20:34:03 +0200
commitc31d41e161b4c2a7e26e3564c6e323c1e2787e74 (patch)
treea9f1521b3339a2e4395db4c9f5dd5234fead5dec
parent17c4551a0a02df27cb907678a0509c1a63f6256c (diff)
Fix FreeBSD compile error.
-rw-r--r--plugingui/maintab.cc2
-rw-r--r--plugingui/resamplingframecontent.cc3
-rw-r--r--plugingui/resamplingframecontent.h6
3 files changed, 3 insertions, 8 deletions
diff --git a/plugingui/maintab.cc b/plugingui/maintab.cc
index 503a0a1..aeb34b6 100644
--- a/plugingui/maintab.cc
+++ b/plugingui/maintab.cc
@@ -38,7 +38,7 @@ MainTab::MainTab(Widget* parent,
, statusframe_content{this, settings_notifier}
, humanizerframe_content{this, settings, settings_notifier}
, diskstreamingframe_content{this, settings, settings_notifier}
- , resamplingframe_content{this, settings, settings_notifier}
+ , resamplingframe_content{this, settings_notifier}
, settings(settings)
, settings_notifier(settings_notifier)
{
diff --git a/plugingui/resamplingframecontent.cc b/plugingui/resamplingframecontent.cc
index 1f752d3..92102e3 100644
--- a/plugingui/resamplingframecontent.cc
+++ b/plugingui/resamplingframecontent.cc
@@ -32,9 +32,8 @@ namespace GUI
{
ResamplingframeContent::ResamplingframeContent(
- Widget* parent, Settings& settings, SettingsNotifier& settings_notifier)
+ Widget* parent, SettingsNotifier& settings_notifier)
: Widget(parent)
- , settings(settings)
, settings_notifier(settings_notifier)
{
CONNECT(this, settings_notifier.drumkit_samplerate,
diff --git a/plugingui/resamplingframecontent.h b/plugingui/resamplingframecontent.h
index e98e09b..b45f1ee 100644
--- a/plugingui/resamplingframecontent.h
+++ b/plugingui/resamplingframecontent.h
@@ -29,7 +29,6 @@
#include "widget.h"
#include "textedit.h"
-struct Settings;
class SettingsNotifier;
namespace GUI
@@ -39,9 +38,7 @@ class ResamplingframeContent
: public Widget
{
public:
- ResamplingframeContent(Widget* parent,
- Settings& settings,
- SettingsNotifier& settings_notifier);
+ ResamplingframeContent(Widget* parent, SettingsNotifier& settings_notifier);
// From Widget
virtual void resize(std::size_t width, std::size_t height) override;
@@ -55,7 +52,6 @@ public:
private:
TextEdit text_field{this};
- Settings& settings;
SettingsNotifier& settings_notifier;
std::string drumkit_samplerate;