aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/image.cpp
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-09-17 01:03:35 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-13 22:41:06 +0100
commitb05920748f2eb83839c7925f3c83530b733331f1 (patch)
tree122f00948216df036b159df9630fed645da1585a /src/utils/image.cpp
parent6bfb5f6d2c9b78c1439f9dfcc44005e6dc8056e4 (diff)
downloadusdx-b05920748f2eb83839c7925f3c83530b733331f1.tar.gz
usdx-b05920748f2eb83839c7925f3c83530b733331f1.tar.xz
usdx-b05920748f2eb83839c7925f3c83530b733331f1.zip
add const where applicable
Diffstat (limited to 'src/utils/image.cpp')
-rw-r--r--src/utils/image.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/image.cpp b/src/utils/image.cpp
index 4146e0e4..93808f2e 100644
--- a/src/utils/image.cpp
+++ b/src/utils/image.cpp
@@ -58,7 +58,7 @@ namespace usdx
}
}
- void Image::load(void)
+ void Image::load(void) const
{
BinaryFile file(filename);
@@ -73,7 +73,7 @@ namespace usdx
}
}
- SDL_Surface* Image::get_surface(void)
+ const SDL_Surface* Image::get_surface(void) const
{
if (surface == NULL) {
load();