From beebee468b4987f89f7f8d958bb3f12050876245 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Tue, 28 Aug 2007 10:19:48 +0000 Subject: [PATCH] fixed is_datasource_plugin predicate --- src/datasource_cache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/datasource_cache.cpp b/src/datasource_cache.cpp index 02c1799c2..8b5bfd454 100644 --- a/src/datasource_cache.cpp +++ b/src/datasource_cache.cpp @@ -40,7 +40,7 @@ namespace mapnik bool is_input_plugin (std::string const& filename) { - return boost::algorithm::ends_with(filename,".input"); + return boost::algorithm::ends_with(filename,std::string(".input")); } @@ -118,7 +118,7 @@ namespace mapnik { for (filesystem::directory_iterator itr(path);itr!=end_itr;++itr ) { - if (!is_directory( *itr ) && is_input_plugin(itr->leaf())) + if (!is_directory( *itr ) && is_input_plugin(itr->leaf())) { try {