summaryrefslogtreecommitdiff
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2014-01-24 01:19:50 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2014-01-24 01:19:50 +0100
commit59e2f35230a9ad06116741a56978ac5bbc43e5fb (patch)
tree6c87cc830374e02e60f3961c756b79dc981d762d
parent918d7ba338c7ff80653897e16d89b2a67279fec3 (diff)
PanelIndicatorsView: make PanelIndicatorsView const and return a const&
(bzr r3566.5.261)
-rw-r--r--panel/PanelIndicatorsView.cpp2
-rw-r--r--panel/PanelIndicatorsView.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/panel/PanelIndicatorsView.cpp b/panel/PanelIndicatorsView.cpp
index c1e9bdd86..b82137ecb 100644
--- a/panel/PanelIndicatorsView.cpp
+++ b/panel/PanelIndicatorsView.cpp
@@ -78,7 +78,7 @@ void PanelIndicatorsView::RemoveIndicator(Indicator::Ptr const& indicator)
LOG_DEBUG(logger) << "IndicatorRemoved: " << indicator->name();
}
-PanelIndicatorsView::Indicators PanelIndicatorsView::GetIndicators()
+PanelIndicatorsView::Indicators const& PanelIndicatorsView::GetIndicators() const
{
return indicators_;
}
diff --git a/panel/PanelIndicatorsView.h b/panel/PanelIndicatorsView.h
index feffba1ba..6ebd4f900 100644
--- a/panel/PanelIndicatorsView.h
+++ b/panel/PanelIndicatorsView.h
@@ -74,7 +74,7 @@ protected:
void AddProperties(debug::IntrospectionData&);
typedef std::vector<indicator::Indicator::Ptr> Indicators;
- Indicators GetIndicators();
+ Indicators const& GetIndicators() const;
virtual void Draw(nux::GraphicsEngine& GfxContext, bool force_draw);
virtual void DrawContent(nux::GraphicsEngine& GfxContext, bool force_draw);