~sethj/ubuntu/wily/unity/fix-for-1445595

« back to all changes in this revision

Viewing changes to panel/PanelIndicatorsView.h

  • Committer: Marco Trevisan (Treviño)
  • Date: 2015-02-03 09:46:48 UTC
  • mto: (3899.5.3 panel-titles-fixes)
  • mto: This revision was merged to the branch mainline in revision 3920.
  • Revision ID: mail@3v1n0.net-20150203094648-5a4z0fd462y5aa9u
Unity: Use unordered_map whenever possible

As iterating over it seems just fast as in the ordered version, we just speedup lookups and insertions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
  void RemoveEntryView(PanelIndicatorEntryView* view);
98
98
 
99
99
  nux::HLayout* layout_;
100
 
  std::map<indicator::Entry::Ptr, PanelIndicatorEntryView*> entries_;
 
100
  std::unordered_map<indicator::Entry::Ptr, PanelIndicatorEntryView*> entries_;
101
101
 
102
102
  int monitor_;
103
103
  bool overlay_showing_;