From c3fab9e66502c135e4566005b63a63e04842ddf0 Mon Sep 17 00:00:00 2001 From: artemp Date: Tue, 26 Feb 2013 11:44:23 -0500 Subject: [PATCH] + formatting/cleanup --- include/mapnik/char_info.hpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/include/mapnik/char_info.hpp b/include/mapnik/char_info.hpp index 12da2bf31..e5a6a5baa 100644 --- a/include/mapnik/char_info.hpp +++ b/include/mapnik/char_info.hpp @@ -20,15 +20,16 @@ * *****************************************************************************/ -#ifndef CHAR_INFO_HPP -#define CHAR_INFO_HPP +#ifndef MAPNIK_CHAR_INFO_HPP +#define MAPNIK_CHAR_INFO_HPP #include namespace mapnik { struct char_properties; -class char_info { +class char_info +{ public: char_info(unsigned c_, double width_, double ymax_, double ymin_, double line_height_) : c(c_), @@ -36,7 +37,7 @@ public: line_height(line_height_), ymin(ymin_), ymax(ymax_), - avg_height(ymax_-ymin_), + avg_height(ymax - ymin), format() { } @@ -52,6 +53,8 @@ public: { } + double height() const { return ymax-ymin; } + unsigned c; double width; double line_height; @@ -59,7 +62,8 @@ public: double ymax; double avg_height; char_properties *format; - double height() const { return ymax-ymin; } + }; } -#endif + +#endif //MAPNIK_CHAR_INFO_HPP