From 21ec94afe38878f0efdf1df3ad5a9f724d5cf3e0 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 10 Jul 2006 22:18:56 +0000 Subject: Fugly code band-aid^H^H^H^H^Hfix git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4315 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/modules.cpp b/src/modules.cpp index 282e856c4..3ec932980 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -942,7 +942,7 @@ std::string FileReader::Contents() std::string x = ""; for (file_cache::iterator a = this->fc.begin(); a != this->fc.end(); a++) { - x.append((std::string*)(*a)); + x.append(a->c_str()); x.append("\r\n"); } return x; @@ -952,7 +952,7 @@ unsigned long FileReader::ContentSize() { unsigned long n = 0; for (file_cache::iterator a = this->fc.begin(); a != this->fc.end(); a++) - n += (((std::string*)(*a))->length() + 2); + n += (a->length() + 2); return n; } -- cgit v1.2.3