From d0b167affc208cf8bb628f7263fe2584d17b9f88 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Mon, 29 Sep 2014 17:14:40 -0700 Subject: [PATCH] iwyu shuffle --- include/mapnik/expression_node.hpp | 1 + .../renderer_common/process_polygon_symbolizer.hpp | 4 ++++ include/mapnik/unicode.hpp | 14 ++------------ include/mapnik/value_hash.hpp | 7 +++++-- src/unicode.cpp | 3 +++ 5 files changed, 15 insertions(+), 14 deletions(-) diff --git a/include/mapnik/expression_node.hpp b/include/mapnik/expression_node.hpp index 0eb093c5c..7d2e6e701 100644 --- a/include/mapnik/expression_node.hpp +++ b/include/mapnik/expression_node.hpp @@ -26,6 +26,7 @@ // mapnik #include #include +#include #include #include #include diff --git a/include/mapnik/renderer_common/process_polygon_symbolizer.hpp b/include/mapnik/renderer_common/process_polygon_symbolizer.hpp index 901158d5b..05a076c79 100644 --- a/include/mapnik/renderer_common/process_polygon_symbolizer.hpp +++ b/include/mapnik/renderer_common/process_polygon_symbolizer.hpp @@ -23,7 +23,11 @@ #ifndef MAPNIK_RENDERER_COMMON_PROCESS_POLYGON_SYMBOLIZER_HPP #define MAPNIK_RENDERER_COMMON_PROCESS_POLYGON_SYMBOLIZER_HPP +#include #include +#include +#include +#include namespace mapnik { diff --git a/include/mapnik/unicode.hpp b/include/mapnik/unicode.hpp index 4522c3b8e..4f84c74e9 100644 --- a/include/mapnik/unicode.hpp +++ b/include/mapnik/unicode.hpp @@ -26,15 +26,14 @@ //mapnik #include #include - -// icu #include -#include // stl #include #include +struct UConverter; + namespace mapnik { class MAPNIK_DECL transcoder : private mapnik::noncopyable @@ -49,13 +48,4 @@ private: }; } -namespace U_ICU_NAMESPACE { - -inline std::size_t hash_value(mapnik::value_unicode_string const& val) -{ - return val.hashCode(); -} - -} - #endif // MAPNIK_UNICODE_HPP diff --git a/include/mapnik/value_hash.hpp b/include/mapnik/value_hash.hpp index e9667915e..1a72108b4 100644 --- a/include/mapnik/value_hash.hpp +++ b/include/mapnik/value_hash.hpp @@ -26,10 +26,13 @@ // mapnik #include #include -#include + // stl #include +// icu +#include + namespace mapnik { namespace detail { template @@ -48,7 +51,7 @@ struct value_hasher: public util::static_visitor std::size_t operator() (value_unicode_string const& val) const { - return hash_value(val); + return val.hashCode(); } template diff --git a/src/unicode.cpp b/src/unicode.cpp index 22114d156..4c703a2cb 100644 --- a/src/unicode.cpp +++ b/src/unicode.cpp @@ -28,6 +28,9 @@ #include #include +// icu +#include + namespace mapnik { transcoder::transcoder (std::string const& encoding)