on xenial help sign in
Remove unecessary member variable
commit50d661ea3a2f1cc14b9c5c12369c870b8a5a5844 authorJosh Arenson <joshua.arenson@canonical.com> dateFri 29 Apr 2016, 08:26 (10 years ago) parent5201c2d
2 files changed+1−3
tests/mocks/Unity/fake_scope.cpp+1−2 tests/mocks/Unity/fake_scope.h−1
tests/mocks/Unity/fake_scope.cpp+1−2
@@ -48,9 +48,8 @@ Scope::Scope(QString const& id, QString const& name, bool favorite, Scopes* pare
4848 , m_settings(new SettingsModel(this))
4949 , m_filters(new Filters(this))
5050 , m_returnNullPreview(returnNullPreview)
51− , m_primaryNavigationFilterOptionLabels(primaryNavigationFilterOptionLabels)
5251{
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);
5453 connect(m_filters, &Filters::activeFiltersCountChanged, this, &Scope::activeFiltersCountChanged);
5554}
5655
tests/mocks/Unity/fake_scope.h−1
@@ -122,7 +122,6 @@ protected:
122122 FakeOptionSelectorFilter* m_primaryNavigationFilter;
123123
124124 bool m_returnNullPreview;
125− const QStringList m_primaryNavigationFilterOptionLabels;
126125};
127126
128127#endif // FAKE_SCOPE_H