mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-22 13:05:20 +02:00
Use tr1::unordered_map instead of google::dense_hash_map in SurfaceCollection.
This reduces the binary size by about 45K.
This commit is contained in:
parent
c84fea65a2
commit
4dade329f7
@ -27,8 +27,6 @@ using std::endl;
|
||||
using std::string;
|
||||
|
||||
SurfaceCollection::SurfaceCollection(bool defaultAlpha, const string &skin) {
|
||||
surfaces.set_empty_key(" ");
|
||||
surfaces.set_deleted_key("");
|
||||
this->defaultAlpha = defaultAlpha;
|
||||
setSkin(skin);
|
||||
}
|
||||
|
@ -20,12 +20,12 @@
|
||||
#ifndef SURFACECOLLECTION_H
|
||||
#define SURFACECOLLECTION_H
|
||||
|
||||
#include <google/dense_hash_map>
|
||||
#include <string>
|
||||
#include <tr1/unordered_map>
|
||||
|
||||
class Surface;
|
||||
|
||||
typedef google::dense_hash_map<std::string, Surface *> SurfaceHash;
|
||||
typedef std::tr1::unordered_map<std::string, Surface *> SurfaceHash;
|
||||
|
||||
/**
|
||||
Hash Map of surfaces that loads surfaces not already loaded and reuses already loaded ones.
|
||||
|
Loading…
Reference in New Issue
Block a user