From 552ff581d40cc6c87efdadb53332525420cd5969 Mon Sep 17 00:00:00 2001 From: Barend Gehrels Date: Thu, 6 Nov 2014 11:13:23 +0100 Subject: [PATCH] [overlay] 'fix' wrong name Code to Properties --- .../detail/overlay/select_rings.hpp | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/include/boost/geometry/algorithms/detail/overlay/select_rings.hpp b/include/boost/geometry/algorithms/detail/overlay/select_rings.hpp index 311bfc1cf..37f126c16 100644 --- a/include/boost/geometry/algorithms/detail/overlay/select_rings.hpp +++ b/include/boost/geometry/algorithms/detail/overlay/select_rings.hpp @@ -165,14 +165,14 @@ struct decide template<> struct decide { - template - static bool include(ring_identifier const& , Code const& code) + template + static bool include(ring_identifier const& , Properties const& properties) { - return code.within_code * -1 == 1; + return properties.within_code * -1 == 1; } - template - static bool reversed(ring_identifier const& , Code const& ) + template + static bool reversed(ring_identifier const& , Properties const& ) { return false; } @@ -181,31 +181,31 @@ struct decide template<> struct decide { - template - static bool include(ring_identifier const& id, Code const& code) + template + static bool include(ring_identifier const& id, Properties const& properties) { bool is_first = id.source_index == 0; - return code.within_code * -1 * (is_first ? 1 : -1) == 1; + return properties.within_code * -1 * (is_first ? 1 : -1) == 1; } - template - static bool reversed(ring_identifier const& id, Code const& code) + template + static bool reversed(ring_identifier const& id, Properties const& properties) { - return include(id, code) && id.source_index == 1; + return include(id, properties) && id.source_index == 1; } }; template<> struct decide { - template - static bool include(ring_identifier const& , Code const& code) + template + static bool include(ring_identifier const& , Properties const& properties) { - return code.within_code * 1 == 1; + return properties.within_code * 1 == 1; } - template - static bool reversed(ring_identifier const& , Code const& ) + template + static bool reversed(ring_identifier const& , Properties const& ) { return false; }