mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2025-04-21 12:27:27 +03:00
Replaced every message output by calls to the log macros.
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
#include "surfacecollection.h"
|
||||
#include "surface.h"
|
||||
#include "utilities.h"
|
||||
#include "debug.h"
|
||||
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
using std::string;
|
||||
|
||||
@@ -52,7 +52,7 @@ string SurfaceCollection::getSkinFilePath(const string &file) {
|
||||
void SurfaceCollection::debug() {
|
||||
SurfaceHash::iterator end = surfaces.end();
|
||||
for(SurfaceHash::iterator curr = surfaces.begin(); curr != end; curr++){
|
||||
cout << "key: " << curr->first << endl;
|
||||
DEBUG("key: %i\n", curr->first);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,9 +67,8 @@ Surface *SurfaceCollection::add(Surface *s, const string &path) {
|
||||
}
|
||||
|
||||
Surface *SurfaceCollection::add(const string &path, bool alpha) {
|
||||
#ifdef DEBUG
|
||||
cout << "Adding surface: " << path << endl;
|
||||
#endif
|
||||
DEBUG("Adding surface: '%s'\n", path.c_str());
|
||||
|
||||
if (exists(path)) del(path);
|
||||
string filePath = path;
|
||||
|
||||
@@ -85,9 +84,7 @@ Surface *SurfaceCollection::add(const string &path, bool alpha) {
|
||||
}
|
||||
|
||||
Surface *SurfaceCollection::addSkinRes(const string &path, bool alpha) {
|
||||
#ifdef DEBUG
|
||||
cout << "Adding skin surface: " << path << endl;
|
||||
#endif
|
||||
DEBUG("Adding skin surface: '%s'\n", path.c_str());
|
||||
|
||||
if (path.empty()) return NULL;
|
||||
if (exists(path)) del(path);
|
||||
|
||||
Reference in New Issue
Block a user