From cab3ba345c386e5e877f94ca67cd7100d9a41bc4 Mon Sep 17 00:00:00 2001 From: Joshua Hintze Date: Fri, 15 Oct 2021 19:33:50 -0600 Subject: [PATCH] -Removed unneeded macro escapes --- include/mapnik/util/char_array_buffer.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/mapnik/util/char_array_buffer.hpp b/include/mapnik/util/char_array_buffer.hpp index 67b59f6ed..0acb5f4dd 100644 --- a/include/mapnik/util/char_array_buffer.hpp +++ b/include/mapnik/util/char_array_buffer.hpp @@ -72,16 +72,16 @@ private: pos_type seekpos(pos_type off, std::ios_base::openmode /*which*/) { - current_ = (std::min)(begin_ + off, end_); + current_ = std::min(begin_ + off, end_); return pos_type(off_type(current_ - begin_)); } pos_type seekoff(off_type off, std::ios_base::seekdir dir, std::ios_base::openmode which = std::ios_base::in | std::ios_base::out ) { - if (dir == std::ios_base::beg) current_ = (std::min)(begin_ + off, end_); - else if (dir == std::ios_base::cur) current_ = (std::min)(current_ + off, end_); - else current_ = (std::max)(end_ - off, begin_); // dir == std::ios_base::end + if (dir == std::ios_base::beg) current_ = std::min(begin_ + off, end_); + else if (dir == std::ios_base::cur) current_ = std::min(current_ + off, end_); + else current_ = std::max(end_ - off, begin_); // dir == std::ios_base::end return pos_type(off_type(current_ - begin_)); } char const * const begin_;