From: mental Date: Fri, 21 Jul 2006 03:15:49 +0000 (+0000) Subject: replace two uses of hash_map with standard STL map X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a81c11fa7e1b08e4e61f1c98d61ebb33b6fe7878;p=inkscape.git replace two uses of hash_map with standard STL map --- diff --git a/ChangeLog b/ChangeLog index d0c204fc7..7304f0b11 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-07-20 MenTaLguY + + * src/libnrtype/RasterFont.h, src/libnrtype/font-instance.h: + + replace two uses of hash_map with standard STL map + 2006-07-18 Bryce Harrington * src/document.h, src/document.cpp: Refactoring from mental & bryce to consolidate document update functionality from diff --git a/src/libnrtype/RasterFont.h b/src/libnrtype/RasterFont.h index 03665c69a..10de23d1b 100644 --- a/src/libnrtype/RasterFont.h +++ b/src/libnrtype/RasterFont.h @@ -7,7 +7,7 @@ #ifndef my_raster_font #define my_raster_font -#include +#include #include #include @@ -22,7 +22,7 @@ public: font_style style; - __gnu_cxx::hash_map glyph_id_to_raster_glyph_no; + std::map glyph_id_to_raster_glyph_no; // an array of glyphs in this rasterfont. // it's a bit redundant with the one in the daddy font_instance, but these glyphs // contains the real rasterization data diff --git a/src/libnrtype/font-instance.h b/src/libnrtype/font-instance.h index 5d57ff549..ec58ce1d7 100644 --- a/src/libnrtype/font-instance.h +++ b/src/libnrtype/font-instance.h @@ -2,6 +2,7 @@ #define SEEN_LIBNRTYPE_FONT_INSTANCE_H #include +#include #include #include #include @@ -43,7 +44,7 @@ public: font_factory* daddy; // common glyph definitions for all the rasterfonts - __gnu_cxx::hash_map id_to_no; + std::map id_to_no; int nbGlyph, maxGlyph; font_glyph* glyphs;