Add const keyword to const arguments.

This commit is contained in:
castano 2008-11-21 07:57:28 +00:00
parent 7486201a7e
commit a769831fb5
2 changed files with 4 additions and 4 deletions

View File

@ -116,7 +116,7 @@ Image * nv::ImageIO::load(const char * fileName, Stream & s)
return NULL;
}
bool nv::ImageIO::save(const char * fileName, Stream & s, Image * img)
bool nv::ImageIO::save(const char * fileName, Stream & s, const Image * img)
{
nvDebugCheck(fileName != NULL);
nvDebugCheck(s.isSaving());
@ -131,7 +131,7 @@ bool nv::ImageIO::save(const char * fileName, Stream & s, Image * img)
return false;
}
bool nv::ImageIO::save(const char * fileName, Image * img)
bool nv::ImageIO::save(const char * fileName, const Image * img)
{
nvDebugCheck(fileName != NULL);
nvDebugCheck(img != NULL);

View File

@ -19,8 +19,8 @@ namespace nv
NVIMAGE_API FloatImage * loadFloat(const char * fileName);
NVIMAGE_API FloatImage * loadFloat(const char * fileName, Stream & s);
NVIMAGE_API bool save(const char * fileName, Stream & s, Image * img);
NVIMAGE_API bool save(const char * fileName, Image * img);
NVIMAGE_API bool save(const char * fileName, Stream & s, const Image * img);
NVIMAGE_API bool save(const char * fileName, const Image * img);
NVIMAGE_API bool saveFloat(const char * fileName, const FloatImage * fimage, uint base_component, uint num_components);
NVIMAGE_API Image * loadTGA(Stream & s);