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

« back to all changes in this revision

Viewing changes to unity-shared/PreviewStyle.cpp

  • 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:
83
83
  }
84
84
private:
85
85
  std::string filename_;
86
 
  std::map<int, BaseTexturePtr> textures_;
 
86
  std::unordered_map<int, BaseTexturePtr> textures_;
87
87
};
88
88
 
89
89
} // namespace