Remove String->const char* conversion operator in favor of c_str method
[clinton/bobotpp.git] / source / ShitList.C
index 320c6f0..98f0071 100644 (file)
@@ -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<ShitEntry *>::iterator it = l.begin();
-  std::ofstream file(listFileName);
+  std::ofstream file(listFileName.c_str ());
 
   if (!file)
     return;