1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2025-04-21 12:27:27 +03:00

pass strings by reference where possible

This commit is contained in:
Lars-Peter Clausen
2010-05-02 14:29:09 +02:00
parent a794a1c01a
commit 40a26e1a9c
68 changed files with 279 additions and 267 deletions

View File

@@ -39,25 +39,25 @@ private:
string skin;
public:
SurfaceCollection(bool defaultAlpha=true, string skin="default");
SurfaceCollection(bool defaultAlpha=true, const string &skin="default");
~SurfaceCollection();
void setSkin(string skin);
string getSkinFilePath(string file);
void setSkin(const string &skin);
string getSkinFilePath(const string &file);
bool defaultAlpha;
void debug();
Surface *add(Surface *s, string path);
Surface *add(string path, bool alpha=true);
Surface *addSkinRes(string path, bool alpha=true);
void del(string path);
Surface *add(Surface *s, const string &path);
Surface *add(const string &path, bool alpha=true);
Surface *addSkinRes(const string &path, bool alpha=true);
void del(const string &path);
void clear();
void move(string from, string to);
bool exists(string path);
void move(const string &from, const string &to);
bool exists(const string &path);
Surface *operator[](string);
Surface *skinRes(string);
Surface *operator[](const string &);
Surface *skinRes(const string &);
};
#endif