diff --git a/src/font_engine_freetype.cpp b/src/font_engine_freetype.cpp index 92e143348..8250e1a27 100644 --- a/src/font_engine_freetype.cpp +++ b/src/font_engine_freetype.cpp @@ -253,7 +253,7 @@ face_ptr freetype_engine::create_face(std::string const& family_name) = memory_fonts_.insert(std::make_pair(itr->second.second, buffer)); FT_Error error = FT_New_Memory_Face (library_, - reinterpret_cast(result.first->second.c_str()), + reinterpret_cast(result.first->second.c_str()), static_cast(buffer.size()), itr->second.first, &face); diff --git a/tests/cpp_tests/image_io_test.cpp b/tests/cpp_tests/image_io_test.cpp index 592b1a28c..cc55cb99d 100644 --- a/tests/cpp_tests/image_io_test.cpp +++ b/tests/cpp_tests/image_io_test.cpp @@ -56,19 +56,6 @@ int main(int argc, char** argv) BOOST_TEST( true ); } - should_throw = "./tests/cpp_tests/data/blank.webp"; - BOOST_TEST( mapnik::util::exists( should_throw ) ); - type = mapnik::type_from_filename(should_throw); - BOOST_TEST( type ); - try - { - std::unique_ptr reader(mapnik::get_image_reader(should_throw,*type)); - BOOST_TEST( false ); - } - catch (std::exception const&) - { - BOOST_TEST( true ); - } should_throw = "./tests/data/images/xcode-CgBI.png"; BOOST_TEST( mapnik::util::exists( should_throw ) ); type = mapnik::type_from_filename(should_throw);