HCoop
/
clinton
/
bobotpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove String->const char* conversion operator in favor of c_str method
[clinton/bobotpp.git]
/
source
/
ShitList.C
diff --git
a/source/ShitList.C
b/source/ShitList.C
index
320c6f0
..
98f0071
100644
(file)
--- a/
source/ShitList.C
+++ b/
source/ShitList.C
@@
-48,7
+48,7
@@
ShitList::~ShitList()
void
ShitList::read()
{
void
ShitList::read()
{
- std::ifstream file(listFileName);
+ std::ifstream file(listFileName
.c_str ()
);
String temp;
int line = 1;
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());
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();
line++;
}
file.close();
@@
-77,7
+77,7
@@
void
ShitList::save()
{
std::list<ShitEntry *>::iterator it = l.begin();
ShitList::save()
{
std::list<ShitEntry *>::iterator it = l.begin();
- std::ofstream file(listFileName);
+ std::ofstream file(listFileName
.c_str ()
);
if (!file)
return;
if (!file)
return;