From 64747eb8281f6a0b0a803224be37a51cffb3c80d Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Thu, 23 Jan 2014 14:42:28 -0500 Subject: [PATCH] Constify --- IO/config/ImageLoader.h.in | 2 +- IO/src/ImageLoader.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/IO/config/ImageLoader.h.in b/IO/config/ImageLoader.h.in index 3d9e363..b65d23b 100644 --- a/IO/config/ImageLoader.h.in +++ b/IO/config/ImageLoader.h.in @@ -94,7 +94,7 @@ class ImageLoader { uint32 GetChannelForPixel(uint32 x, uint32 y, uint32 ch); - bool LoadFromPixelBuffer(uint32 *data, bool flipY = false); + bool LoadFromPixelBuffer(const uint32 *data, bool flipY = false); public: virtual ~ImageLoader() { diff --git a/IO/src/ImageLoader.cpp b/IO/src/ImageLoader.cpp index 37df083..b65bb94 100644 --- a/IO/src/ImageLoader.cpp +++ b/IO/src/ImageLoader.cpp @@ -137,7 +137,7 @@ unsigned int ImageLoader::GetChannelForPixel(uint32 x, uint32 y, uint32 ch) { return val; } -bool ImageLoader::LoadFromPixelBuffer(uint32 *data, bool flipY) { +bool ImageLoader::LoadFromPixelBuffer(const uint32 *data, bool flipY) { m_RedChannelPrecision = 8; m_GreenChannelPrecision = 8; m_BlueChannelPrecision = 8;