From 7108db4f04f477651fb062799f9e5a142f0a7d41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 17 Mar 2013 22:28:05 +0100 Subject: [PATCH] GCC 4.4 compatibility: no std::unordered_map::reserve() here. --- src/Text/FreeTypeFont.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Text/FreeTypeFont.cpp b/src/Text/FreeTypeFont.cpp index a073006df..5fd3bda84 100644 --- a/src/Text/FreeTypeFont.cpp +++ b/src/Text/FreeTypeFont.cpp @@ -119,7 +119,9 @@ void FreeTypeFont::prerenderInternal(const std::string& characters, const Vector const std::vector charPositions = TextureTools::atlas(atlasSize, charSizes, padding); /* Render all characters to the atlas and create character map */ + #ifndef CORRADE_GCC44_COMPATIBILITY glyphs.reserve(charPositions.size()); + #endif unsigned char* pixmap = new unsigned char[atlasSize.product()](); Image2D image(atlasSize, Image2D::Format::Red, Image2D::Type::UnsignedByte, pixmap); for(std::size_t i = 0; i != charPositions.size(); ++i) {