|
From: andrew7 <bd...@us...> - 2007-06-24 20:02:59
|
Update of /cvsroot/smartwin/SmartWin/tests/sw_mdi In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv5834 Modified Files: MdiGrid.h MdiTree.h Log Message: Use tfstream instead if #ifdef Index: MdiTree.h =================================================================== RCS file: /cvsroot/smartwin/SmartWin/tests/sw_mdi/MdiTree.h,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- MdiTree.h 30 Nov 2006 01:03:33 -0000 1.11 +++ MdiTree.h 24 Jun 2007 20:02:50 -0000 1.12 @@ -227,11 +227,7 @@ SmartUtil::tstring filePath; HtmlFilenameFromUser( filePath ); -#ifdef UNICODE - wfstream file( filePath.c_str(), ios_base::in ); -#else - fstream file( filePath.c_str(), ios_base::in ); -#endif + SmartUtil::tfstream file( filePath.c_str(), ios_base::in ); if ( ! file.good() ) return; itsCurrentFilename = filePath; this->setText( itsCurrentFilename + _T( " - Grid" ) ); @@ -268,11 +264,7 @@ void FileSave( SmartUtil::tstring & filePath ) { -#ifdef UNICODE - wfstream file( filePath.c_str(), ios_base::out ); -#else - fstream file( filePath.c_str(), ios_base::out ); -#endif + SmartUtil::tfstream file( filePath.c_str(), ios_base::out ); if ( ! file.good() ) return; html_put hp( file ); Index: MdiGrid.h =================================================================== RCS file: /cvsroot/smartwin/SmartWin/tests/sw_mdi/MdiGrid.h,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- MdiGrid.h 30 Nov 2006 01:03:33 -0000 1.11 +++ MdiGrid.h 24 Jun 2007 20:02:50 -0000 1.12 @@ -216,11 +216,7 @@ { SmartUtil::tstring filePath; HtmlFilenameFromUser( filePath ); -#ifdef UNICODE - wfstream file( filePath.c_str(), ios_base::in ); -#else - fstream file( filePath.c_str(), ios_base::in ); -#endif + SmartUtil::tfstream file( filePath.c_str(), ios_base::in ); if ( ! file.good() ) return; itsCurrentFilename = filePath; this->setText( itsCurrentFilename + _T( " - Grid" ) ); @@ -257,11 +253,7 @@ void FileSave( SmartUtil::tstring & filePath ) { -#ifdef UNICODE - wfstream file( filePath.c_str(), ios_base::out ); -#else - fstream file( filePath.c_str(), ios_base::out ); -#endif + SmartUtil::tfstream file( filePath.c_str(), ios_base::out ); if ( ! file.good() ) return; html_put hp( file ); |