diff --git a/src/core/store/MMapDirectory.cpp b/src/core/store/MMapDirectory.cpp index beac7828..46156e3a 100644 --- a/src/core/store/MMapDirectory.cpp +++ b/src/core/store/MMapDirectory.cpp @@ -36,7 +36,7 @@ MMapIndexInput::MMapIndexInput(const String& path) { bufferPosition = 0; if (!path.empty()) { try { - file.open(boost::filesystem::wpath(path), _length); + file.open(boost::filesystem::path(path), _length); } catch (...) { boost::throw_exception(FileNotFoundException(path)); } diff --git a/src/core/util/FileUtils.cpp b/src/core/util/FileUtils.cpp index 51508b57..d92efbb8 100644 --- a/src/core/util/FileUtils.cpp +++ b/src/core/util/FileUtils.cpp @@ -5,9 +5,9 @@ ///////////////////////////////////////////////////////////////////////////// #include "LuceneInc.h" -#include #include #include +#include #include "LuceneThread.h" #include "StringUtils.h" #include "FileUtils.h" @@ -128,12 +128,12 @@ String joinPath(const String& path, const String& file) { } String extractPath(const String& path) { - boost::filesystem::wpath parentPath(path.c_str()); + boost::filesystem::path parentPath(path.c_str()); return parentPath.parent_path().wstring().c_str(); } String extractFile(const String& path) { - boost::filesystem::wpath fileName(path.c_str()); + boost::filesystem::path fileName(path.c_str()); return fileName.filename().wstring().c_str(); }