Permalink
Browse files

Made the end iterator reference const.

Advice from 4144.
  • Loading branch information...
1 parent a56bf2f commit bb8c060a795fd3dced76f185c93aef766c516d85 Yohann Ferreira committed Sep 23, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/engine/video/text.cpp
  2. +1 −1 src/engine/video/texture_controller.cpp
@@ -517,7 +517,7 @@ TextSupervisor::~TextSupervisor() {
TTF_CloseFont(fp->ttf_font);
if (fp->glyph_cache) {
- std::vector<hoa_video::FontGlyph*>::iterator it_end = fp->glyph_cache->end();
+ std::vector<hoa_video::FontGlyph*>::const_iterator it_end = fp->glyph_cache->end();
for (std::vector<FontGlyph*>::iterator j = fp->glyph_cache->begin(); j != it_end; ++j) {
delete *j;
}
@@ -113,7 +113,7 @@ bool TextureController::UnloadTextures() {
// Clear all font caches
std::map<std::string, FontProperties*>::iterator j = TextManager->_font_map.begin();
- std::map<std::string, FontProperties*>::iterator j_end = TextManager->_font_map.end();
+ std::map<std::string, FontProperties*>::const_iterator j_end = TextManager->_font_map.end();
while (j != j_end) {
std::vector<FontGlyph*>* glyph_cache = j->second->glyph_cache;

0 comments on commit bb8c060

Please sign in to comment.