on xenial help sign in
Remove unecessary member variable
50d661eJosh Arenson
tests/mocks/Unity/fake_scope.cpp+1−2
@@ -48,9 +48,8 @@ Scope::Scope(QString const& id, QString const& name, bool favorite, Scopes* pare
48 , m_settings(new SettingsModel(this))
48 , m_settings(new SettingsModel(this))
49 , m_filters(new Filters(this))
49 , m_filters(new Filters(this))
50 , m_returnNullPreview(returnNullPreview)
50 , m_returnNullPreview(returnNullPreview)
51− , m_primaryNavigationFilterOptionLabels(primaryNavigationFilterOptionLabels)
52{
51{
53− m_primaryNavigationFilter = new FakeOptionSelectorFilter("OSF3", "PFTag", "Which food you like More", false, m_primaryNavigationFilterOptionLabels, this);
52+ m_primaryNavigationFilter = new FakeOptionSelectorFilter("OSF3", "PFTag", "Which food you like More", false, primaryNavigationFilterOptionLabels, this);
54 connect(m_filters, &Filters::activeFiltersCountChanged, this, &Scope::activeFiltersCountChanged);
53 connect(m_filters, &Filters::activeFiltersCountChanged, this, &Scope::activeFiltersCountChanged);
55}
54}
56
55
tests/mocks/Unity/fake_scope.h−1
@@ -122,7 +122,6 @@ protected:
122 FakeOptionSelectorFilter* m_primaryNavigationFilter;
122 FakeOptionSelectorFilter* m_primaryNavigationFilter;
123
123
124 bool m_returnNullPreview;
124 bool m_returnNullPreview;
125− const QStringList m_primaryNavigationFilterOptionLabels;
126};
125};
127
126
128#endif // FAKE_SCOPE_H
127#endif // FAKE_SCOPE_H