From 3e6c7c189ba3d623845dfc385f143cc49e4be8aa Mon Sep 17 00:00:00 2001 From: Bernard Normier Date: Fri, 8 Jul 2016 10:50:18 -0400 Subject: Removed IceUtilInternal ifstream and ofstream --- cpp/src/IceGrid/FileCache.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cpp/src/IceGrid/FileCache.cpp') 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 #include +#include 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 + "'"); -- cgit v1.2.3