]> git.llucax.com Git - software/bife/bife++.git/blobdiff - chit.cpp
Now widgets are passed as pointer (and stored as pointers) in container classes.
[software/bife/bife++.git] / chit.cpp
index f456cdec2fded06097afe292370f9e7bb8b7b940..2322d12ec8d8d1d221650f9e3bd59d61c92beeb6 100644 (file)
--- a/chit.cpp
+++ b/chit.cpp
@@ -2,11 +2,29 @@
 
 #include "chit.h"
 
 
 #include "chit.h"
 
-CHIT::CHIT(string root, string postfix, string group) {
-    GHIT(root, postfix, group);
+using namespace bife;
+
+#ifdef DEBUG
+#include <iostream>
+using std::cerr;
+using std::endl;
+#endif
+
+CHIT::CHIT(const string& root, const string& postfix, const string& group):
+        GHIT(root, postfix, group) {
+#ifdef DEBUG
+    cerr << "In CHIT::CHIT(root = '" << root << "', postfix = '" << postfix
+        << "', group = '" << group << "');" << endl;
+#endif
+}
+
+CHIT::~CHIT(void) {
+#ifdef DEBUG
+    cerr << "In CHIT destructor." << endl;
+#endif
 }
 
 }
 
-string CHIT::getFileContent(string filename) {
+string CHIT::getFileContent(const string& filename) {
     Hash::iterator c = cache.find(filename);
     if (c == cache.end()) {
         cache[filename] = GHIT::getFileContent(filename);
     Hash::iterator c = cache.find(filename);
     if (c == cache.end()) {
         cache[filename] = GHIT::getFileContent(filename);