X-Git-Url: https://git.llucax.com/software/bife/bife%20%20.git/blobdiff_plain/c0e82949e9242609f21b0eef63ad16d4f6462043..8d8860f5938a20b3dbf1011b6b274291c13eeade:/ghit.cpp/software/bife/bife++.git/blobdiff_plain/c0e82949e9242609f21b0eef63ad16d4f6462043..8d8860f5938a20b3dbf1011b6b274291c13eeade:/ghit.cpp?ds=inline diff --git a/ghit.cpp b/ghit.cpp index 5243932..5d453bd 100644 --- a/ghit.cpp +++ b/ghit.cpp @@ -10,7 +10,8 @@ using std::cerr; using std::endl; #endif -GHIT::GHIT(string root, string postfix, string group): HIT(root, postfix) { +GHIT::GHIT(const string& root, const string& postfix, const string& group): + HIT(root, postfix) { #ifdef DEBUG cerr << "In GHIT::GHIT(root = '" << root << "', postfix = '" << postfix << "', group = '" << group << "');" << endl; @@ -24,11 +25,11 @@ GHIT::~GHIT(void) { #endif } -string GHIT::getFileName(string blockname) { +string GHIT::getFileName(const string& blockname) { return string(root + '/' + group.top() + '/' + blockname + postfix); } -void GHIT::pushGroup(string group) { +void GHIT::pushGroup(const string& group) { this->group.push(group); }