mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2025-04-21 12:27:27 +03:00
Use tr1::unordered_map instead of google::dense_hash_map in class GMenu2X.
This reduces the binary size by about 260K.
This commit is contained in:
@@ -21,10 +21,6 @@
|
||||
#ifndef GMENU2X_H
|
||||
#define GMENU2X_H
|
||||
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
#include "google/dense_hash_map"
|
||||
#include "surfacecollection.h"
|
||||
#include "iconbutton.h"
|
||||
#include "translator.h"
|
||||
@@ -35,6 +31,11 @@
|
||||
#include "asfont.h"
|
||||
#include "surface.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <tr1/unordered_map>
|
||||
|
||||
const int MAX_VOLUME_SCALE_FACTOR = 200;
|
||||
// Default values - going to add settings adjustment, saving, loading and such
|
||||
const int VOLUME_SCALER_MUTE = 0;
|
||||
@@ -63,12 +64,12 @@ enum color {
|
||||
};
|
||||
|
||||
using std::string;
|
||||
using std::vector;
|
||||
using fastdelegate::FastDelegate0;
|
||||
using google::dense_hash_map;
|
||||
|
||||
typedef FastDelegate0<> MenuAction;
|
||||
typedef dense_hash_map<string, string, hash<string> > ConfStrHash;
|
||||
typedef dense_hash_map<string, int, hash<string> > ConfIntHash;
|
||||
typedef unordered_map<string, string, hash<string> > ConfStrHash;
|
||||
typedef unordered_map<string, int, hash<string> > ConfIntHash;
|
||||
|
||||
typedef struct {
|
||||
unsigned short batt;
|
||||
|
||||
Reference in New Issue
Block a user