X-Git-Url: https://git.hcoop.net/clinton/bobotpp.git/blobdiff_plain/d5dd86885c8340fc5abae7d45a830c6c44651c29..815a1816c8a1ee14b28c776bf92c172b1fcdf13a:/source/ShitList.C?ds=sidebyside diff --git a/source/ShitList.C b/source/ShitList.C index 320c6f0..98f0071 100644 --- a/source/ShitList.C +++ b/source/ShitList.C @@ -48,7 +48,7 @@ ShitList::~ShitList() void ShitList::read() { - std::ifstream file(listFileName); + std::ifstream file(listFileName.c_str ()); String temp; int line = 1; @@ -66,8 +66,8 @@ ShitList::read() String level = st.next_token(':'); String expiration = st.next_token(':'); String reason = Utils::trim_str (st.rest()); - l.push_back (new ShitEntry(mask, channelMask, std::atoi(level), - std::atol(expiration), reason)); + l.push_back (new ShitEntry(mask, channelMask, std::atoi(level.c_str ()), + std::atol(expiration.c_str ()), reason)); line++; } file.close(); @@ -77,7 +77,7 @@ void ShitList::save() { std::list::iterator it = l.begin(); - std::ofstream file(listFileName); + std::ofstream file(listFileName.c_str ()); if (!file) return;