Mercurial > hg > orthanc
diff OrthancServer/main.cpp @ 426:53d79c963e4a
fix for fedora 18
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 08 May 2013 12:16:18 +0200 |
parents | 63f707278fc8 |
children | c9a5d72f8481 |
line wrap: on
line diff
--- a/OrthancServer/main.cpp Wed May 08 12:04:01 2013 +0200 +++ b/OrthancServer/main.cpp Wed May 08 12:16:18 2013 +0200 @@ -324,10 +324,10 @@ OrthancInitialize(); } - boost::filesystem::path storageDirectory = - InterpretStringParameterAsPath(GetGlobalStringParameter("StorageDirectory", "OrthancStorage")); + std::string storageDirectoryStr = GetGlobalStringParameter("StorageDirectory", "OrthancStorage"); + boost::filesystem::path storageDirectory = InterpretStringParameterAsPath(storageDirectoryStr); boost::filesystem::path indexDirectory = - InterpretStringParameterAsPath(GetGlobalStringParameter("IndexDirectory", storageDirectory.string())); + InterpretStringParameterAsPath(GetGlobalStringParameter("IndexDirectory", storageDirectoryStr)); ServerContext context(storageDirectory, indexDirectory); LOG(WARNING) << "Storage directory: " << storageDirectory;