Add const keyword to const arguments.
This commit is contained in:
parent
7486201a7e
commit
a769831fb5
@ -116,7 +116,7 @@ Image * nv::ImageIO::load(const char * fileName, Stream & s)
|
|||||||
return NULL;
|
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(fileName != NULL);
|
||||||
nvDebugCheck(s.isSaving());
|
nvDebugCheck(s.isSaving());
|
||||||
@ -131,7 +131,7 @@ bool nv::ImageIO::save(const char * fileName, Stream & s, Image * img)
|
|||||||
return false;
|
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(fileName != NULL);
|
||||||
nvDebugCheck(img != NULL);
|
nvDebugCheck(img != NULL);
|
||||||
|
@ -19,8 +19,8 @@ namespace nv
|
|||||||
NVIMAGE_API FloatImage * loadFloat(const char * fileName);
|
NVIMAGE_API FloatImage * loadFloat(const char * fileName);
|
||||||
NVIMAGE_API FloatImage * loadFloat(const char * fileName, Stream & s);
|
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, Stream & s, const Image * img);
|
||||||
NVIMAGE_API bool save(const char * fileName, 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 bool saveFloat(const char * fileName, const FloatImage * fimage, uint base_component, uint num_components);
|
||||||
|
|
||||||
NVIMAGE_API Image * loadTGA(Stream & s);
|
NVIMAGE_API Image * loadTGA(Stream & s);
|
||||||
|
Loading…
Reference in New Issue
Block a user