From 2568bad3cc1ae70350f5ad31e97b4c13194e437e Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 1 Feb 2012 13:43:47 +0000 Subject: sprintf() begone! Replaced with StringUtils' Printf() git-svn-id: http://mc-server.googlecode.com/svn/trunk@216 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cFile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/cFile.cpp') diff --git a/source/cFile.cpp b/source/cFile.cpp index b2332cbaf..2026f1fe2 100644 --- a/source/cFile.cpp +++ b/source/cFile.cpp @@ -28,7 +28,7 @@ cFile::cFile(void) : /// Constructs and opens / creates the file specified, use IsOpen() to check for success -cFile::cFile(const char * iFileName, EMode iMode) : +cFile::cFile(const AString & iFileName, EMode iMode) : #ifdef USE_STDIO_FILE m_File(NULL) #else @@ -55,7 +55,7 @@ cFile::~cFile() -bool cFile::Open(const char * iFileName, EMode iMode) +bool cFile::Open(const AString & iFileName, EMode iMode) { assert(!IsOpen()); // You should close the file before opening another one @@ -76,7 +76,7 @@ bool cFile::Open(const char * iFileName, EMode iMode) return false; } } - m_File = fopen(iFileName, Mode); + m_File = fopen(iFileName.c_str(), Mode); return (m_File != NULL); } -- cgit v1.2.3