X-Git-Url: https://git.llucax.com/software/bife/bife%20%20.git/blobdiff_plain/c0e82949e9242609f21b0eef63ad16d4f6462043..8d8860f5938a20b3dbf1011b6b274291c13eeade:/chit.cpp/software/bife/bife++.git/blobdiff_plain/c0e82949e9242609f21b0eef63ad16d4f6462043..8d8860f5938a20b3dbf1011b6b274291c13eeade:/chit.cpp diff --git a/chit.cpp b/chit.cpp index 8ef60eb..2322d12 100644 --- 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);