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/IceGrid/FileCache.cpp | |
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/IceGrid/FileCache.cpp')
-rw-r--r-- | cpp/src/IceGrid/FileCache.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/IceGrid/FileCache.cpp b/cpp/src/IceGrid/FileCache.cpp index eb877b6dd68..79848729aa0 100644 --- a/cpp/src/IceGrid/FileCache.cpp +++ b/cpp/src/IceGrid/FileCache.cpp @@ -16,6 +16,7 @@ #include <IceGrid/Exception.h> #include <deque> +#include <fstream> using namespace std; using namespace IceGrid; @@ -28,7 +29,7 @@ FileCache::FileCache(const Ice::CommunicatorPtr& com) : Ice::Long FileCache::getOffsetFromEnd(const string& file, int originalCount) { - IceUtilInternal::ifstream is(file); // file is a UTF-8 string + ifstream is(IceUtilInternal::streamFilename(file)); // file is a UTF-8 string if(is.fail()) { throw FileNotAvailableException("failed to open file `" + file + "'"); @@ -140,7 +141,7 @@ FileCache::read(const string& file, Ice::Long offset, int size, Ice::Long& newOf throw FileNotAvailableException("maximum bytes per read request is too low"); } - IceUtilInternal::ifstream is(file); // file is a UTF-8 string + ifstream is(IceUtilInternal::streamFilename(file)); // file is a UTF-8 string if(is.fail()) { throw FileNotAvailableException("failed to open file `" + file + "'"); |