Skip to content

Commit e9f88a9

Browse files
committed
boost::optional -> std::optional
1 parent abaa98c commit e9f88a9

3 files changed

Lines changed: 1 addition & 3 deletions

File tree

src/mapnik_image.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ mapnik::image_dtype get_type(mapnik::image_any & im)
173173

174174
std::shared_ptr<image_any> open_from_file(std::string const& filename)
175175
{
176-
boost::optional<std::string> type = type_from_filename(filename);
176+
auto type = type_from_filename(filename);
177177
if (type)
178178
{
179179
std::unique_ptr<image_reader> reader(get_image_reader(filename,*type));

src/mapnik_layer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include <mapnik/layer.hpp>
2626
#include <mapnik/datasource.hpp>
2727
#include <mapnik/datasource_cache.hpp>
28-
#include "python_optional.hpp"
2928
//pybind11
3029
#include <pybind11/pybind11.h>
3130
#include <pybind11/operators.h>

src/mapnik_rule.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include <mapnik/rule.hpp>
2626
#include <mapnik/expression.hpp>
2727
#include <mapnik/expression_string.hpp>
28-
//#include "python_variant.hpp"
2928
//pybind11
3029
#include <pybind11/pybind11.h>
3130
#include <pybind11/operators.h>

0 commit comments

Comments
 (0)