From 69127fa8f13fb900da9bb867428cd99917f0fc1c Mon Sep 17 00:00:00 2001 From: Marc Zinnschlag Date: Fri, 9 Mar 2012 17:33:10 +0100 Subject: [PATCH] boost compatibility fix; added a missing include --- components/files/filelibrary.cpp | 4 ++-- components/files/fileops.cpp | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/components/files/filelibrary.cpp b/components/files/filelibrary.cpp index baefd79eb..f1467166e 100644 --- a/components/files/filelibrary.cpp +++ b/components/files/filelibrary.cpp @@ -44,13 +44,13 @@ namespace Files { if( !acceptableExtensions.empty() ) { - fileExtension = listIter->extension().string(); + fileExtension = boost::filesystem::path (listIter->extension()).string(); boost::algorithm::to_lower(fileExtension); if(!containsVectorString(acceptableExtensions, fileExtension)) continue; } - type = listIter->parent_path().leaf().string(); + type = boost::filesystem::path (listIter->parent_path().leaf()).string(); if (!strict) boost::algorithm::to_lower(type); diff --git a/components/files/fileops.cpp b/components/files/fileops.cpp index d6365e753..f57eaa546 100644 --- a/components/files/fileops.cpp +++ b/components/files/fileops.cpp @@ -1,4 +1,7 @@ #include "fileops.hpp" + +#include + #include #include