diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-30 02:10:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-30 02:10:59 +0300 |
commit | 46f0755975033f37eaae9db73c0e2b6499c2a923 (patch) | |
tree | 5c13c361ce4a4e4fd0e07fca1953c54637965666 /src/gui/widgets/desktop.cpp | |
parent | 1feb7f7edc5f8f383e594b256ef4cab0fae75b99 (diff) | |
download | manaverse-46f0755975033f37eaae9db73c0e2b6499c2a923.tar.gz manaverse-46f0755975033f37eaae9db73c0e2b6499c2a923.tar.bz2 manaverse-46f0755975033f37eaae9db73c0e2b6499c2a923.tar.xz manaverse-46f0755975033f37eaae9db73c0e2b6499c2a923.zip |
Add const to more classes.
Diffstat (limited to 'src/gui/widgets/desktop.cpp')
-rw-r--r-- | src/gui/widgets/desktop.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/desktop.cpp b/src/gui/widgets/desktop.cpp index b6bd62fa7..01002640a 100644 --- a/src/gui/widgets/desktop.cpp +++ b/src/gui/widgets/desktop.cpp @@ -86,7 +86,7 @@ void Desktop::widgetResized(const gcn::Event &event A_UNUSED) void Desktop::draw(gcn::Graphics *graphics) { - Graphics *g = static_cast<Graphics *>(graphics); + Graphics *const g = static_cast<Graphics *const>(graphics); if (!mWallpaper || (getWidth() > mWallpaper->getWidth() || getHeight() > mWallpaper->getHeight())) @@ -126,7 +126,7 @@ void Desktop::setBestFittingWallpaper() const std::string wallpaperName = Wallpaper::getWallpaper(getWidth(), getHeight()); - Image *nWallPaper = Theme::getImageFromTheme(wallpaperName); + Image *const nWallPaper = Theme::getImageFromTheme(wallpaperName); if (nWallPaper) { @@ -138,8 +138,8 @@ void Desktop::setBestFittingWallpaper() || nWallPaper->getHeight() != getHeight())) { // We rescale to obtain a fullscreen wallpaper... - Image *newRsclWlPpr = ResourceManager::getInstance()->getRescaled( - nWallPaper, getWidth(), getHeight()); + Image *const newRsclWlPpr = ResourceManager::getInstance() + ->getRescaled(nWallPaper, getWidth(), getHeight()); // We replace the resource in the resource manager nWallPaper->decRef(); |