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

« back to all changes in this revision

Viewing changes to launcher/LauncherEntryRemoteModel.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:
22
22
 
23
23
#include <gio/gio.h>
24
24
#include <sigc++/sigc++.h>
25
 
#include <map>
 
25
#include <unordered_map>
26
26
 
27
27
#include "LauncherEntryRemote.h"
28
28
 
68
68
  glib::Object<GDBusConnection> _conn;
69
69
  unsigned int _launcher_entry_dbus_signal_id;
70
70
  unsigned int _dbus_name_owner_changed_signal_id;
71
 
  std::map<std::string, LauncherEntryRemote::Ptr> _entries_by_uri;
 
71
  std::unordered_map<std::string, LauncherEntryRemote::Ptr> _entries_by_uri;
72
72
};
73
73
 
74
74
} // namespace