From f24ddad3fa0f843eb29a281426151cf1a5f31f4b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 4 Sep 2012 23:47:11 +0300 Subject: add const to more classes, fix other small style issues. --- src/gui/sdlfont.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/sdlfont.cpp') diff --git a/src/gui/sdlfont.cpp b/src/gui/sdlfont.cpp index ed3a6b295..2dbf880a5 100644 --- a/src/gui/sdlfont.cpp +++ b/src/gui/sdlfont.cpp @@ -100,7 +100,7 @@ SDLFont::SDLFont(std::string filename, const int size, const int style) : mCreateCounter(0), mDeleteCounter(0) { - ResourceManager *const resman = ResourceManager::getInstance(); + const ResourceManager *const resman = ResourceManager::getInstance(); if (fontCounter == 0 && TTF_Init() == -1) { @@ -151,7 +151,7 @@ SDLFont::~SDLFont() void SDLFont::loadFont(std::string filename, const int size, const int style) { - ResourceManager *const resman = ResourceManager::getInstance(); + const ResourceManager *const resman = ResourceManager::getInstance(); if (fontCounter == 0 && TTF_Init() == -1) { -- cgit v1.2.3-70-g09d2