diff options
author | Bernard Normier <bernard@zeroc.com> | 2016-07-08 10:50:18 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2016-07-08 10:50:18 -0400 |
commit | 3e6c7c189ba3d623845dfc385f143cc49e4be8aa (patch) | |
tree | 5e0dfa828891d67c230736a6cf4f5adeb2216097 /cpp/src/IceStorm | |
parent | Additional UWP fix for ICE-7172 (diff) | |
download | ice-3e6c7c189ba3d623845dfc385f143cc49e4be8aa.tar.bz2 ice-3e6c7c189ba3d623845dfc385f143cc49e4be8aa.tar.xz ice-3e6c7c189ba3d623845dfc385f143cc49e4be8aa.zip |
Removed IceUtilInternal ifstream and ofstream
Diffstat (limited to 'cpp/src/IceStorm')
-rw-r--r-- | cpp/src/IceStorm/IceStormDB.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cpp/src/IceStorm/IceStormDB.cpp b/cpp/src/IceStorm/IceStormDB.cpp index 20ff33ed6a6..dc8357893ce 100644 --- a/cpp/src/IceStorm/IceStormDB.cpp +++ b/cpp/src/IceStorm/IceStormDB.cpp @@ -8,10 +8,12 @@ // ********************************************************************** #include <IceUtil/Options.h> -#include <Ice/Application.h> +#include <IceUtil/FileUtil.h> +#include <Ice/Ice.h> #include <IceDB/IceDB.h> #include <IceStorm/DBTypes.h> #include <IceUtil/DisableWarnings.h> +#include <fstream> using namespace std; using namespace Ice; @@ -157,7 +159,7 @@ Client::run(int argc, char* argv[]) return EXIT_FAILURE; } - ifstream fs(dbFile.c_str(), ios::binary); + ifstream fs(IceUtilInternal::streamFilename(dbFile), ios::binary); if(fs.fail()) { cerr << argv[0] << ": could not open input file: " << strerror(errno) << endl; @@ -300,7 +302,7 @@ Client::run(int argc, char* argv[]) stream.write(ICE_INT_VERSION); stream.write(data); - ofstream fs(dbFile.c_str(), ios::binary); + ofstream fs(IceUtilInternal::streamFilename(dbFile), ios::binary); if(fs.fail()) { cerr << argv[0] << ": could not open output file: " << strerror(errno) << endl; |