]> 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 8ef60eb73c87d3cfadac566f0bba33afba95b273..2322d12ec8d8d1d221650f9e3bd59d61c92beeb6 100644 (file)
--- a/chit.cpp
+++ b/chit.cpp
@@ -10,7 +10,8 @@ using std::cerr;
 using std::endl;
 #endif
 
-CHIT::CHIT(string root, string postfix, string group): GHIT(root, postfix, group) {
+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;
@@ -23,7 +24,7 @@ CHIT::~CHIT(void) {
 #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);