summaryrefslogtreecommitdiff
path: root/cpp/src/icegriddb/IceGridDB.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/icegriddb/IceGridDB.cpp')
-rw-r--r--cpp/src/icegriddb/IceGridDB.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/cpp/src/icegriddb/IceGridDB.cpp b/cpp/src/icegriddb/IceGridDB.cpp
index 55fc370fa8f..71e9e7b6028 100644
--- a/cpp/src/icegriddb/IceGridDB.cpp
+++ b/cpp/src/icegriddb/IceGridDB.cpp
@@ -8,12 +8,15 @@
// **********************************************************************
#include <IceUtil/Options.h>
-#include <Ice/Application.h>
+#include <IceUtil/FileUtil.h>
+#include <Ice/Ice.h>
#include <IceDB/IceDB.h>
#include <IceGrid/Admin.h>
#include <IceGrid/DBTypes.h>
#include <IceUtil/DisableWarnings.h>
+#include <fstream>
+
using namespace std;
using namespace Ice;
using namespace IceGrid;
@@ -264,7 +267,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;
@@ -536,7 +539,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;