1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-03 13:39:40 +00:00

boost compatibility fix; added a missing include

This commit is contained in:
Marc Zinnschlag 2012-03-09 17:33:10 +01:00
parent c259b25fcf
commit 69127fa8f1
2 changed files with 5 additions and 2 deletions

View file

@ -44,13 +44,13 @@ namespace Files
{ {
if( !acceptableExtensions.empty() ) if( !acceptableExtensions.empty() )
{ {
fileExtension = listIter->extension().string(); fileExtension = boost::filesystem::path (listIter->extension()).string();
boost::algorithm::to_lower(fileExtension); boost::algorithm::to_lower(fileExtension);
if(!containsVectorString(acceptableExtensions, fileExtension)) if(!containsVectorString(acceptableExtensions, fileExtension))
continue; continue;
} }
type = listIter->parent_path().leaf().string(); type = boost::filesystem::path (listIter->parent_path().leaf()).string();
if (!strict) if (!strict)
boost::algorithm::to_lower(type); boost::algorithm::to_lower(type);

View file

@ -1,4 +1,7 @@
#include "fileops.hpp" #include "fileops.hpp"
#include <iostream>
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>
#include <boost/algorithm/string.hpp> #include <boost/algorithm/string.hpp>