cppcheck clean rtgui/thumbnail.*

This commit is contained in:
Ingo Weyrich
2021-05-23 14:35:59 +02:00
parent 36f1300a6b
commit c9e58fea54
2 changed files with 8 additions and 23 deletions

View File

@@ -194,7 +194,7 @@ void Thumbnail::_generateThumbnailImage ()
}
}
bool Thumbnail::isSupported ()
bool Thumbnail::isSupported () const
{
return cfs.supported;
}
@@ -655,7 +655,7 @@ void Thumbnail::getFinalSize (const rtengine::procparams::ProcParams& pparams, i
}
}
void Thumbnail::getOriginalSize (int& w, int& h)
void Thumbnail::getOriginalSize (int& w, int& h) const
{
w = tw;
h = th;
@@ -784,7 +784,7 @@ void Thumbnail::getAutoWB (double& temp, double& green, double equal, double tem
}
ThFileType Thumbnail::getType ()
ThFileType Thumbnail::getType () const
{
return (ThFileType) cfs.format;
@@ -909,20 +909,6 @@ void Thumbnail::_loadThumbnail(bool firstTrial)
}
}
/*
* Read all thumbnail's data from the cache; build and save them if doesn't exist - MUTEX PROTECTED
* This includes:
* - image's bitmap (*.rtti)
* - auto exposure's histogram (full thumbnail only)
* - embedded profile (full thumbnail only)
* - LiveThumbData section of the data file
*/
void Thumbnail::loadThumbnail (bool firstTrial)
{
MyMutex::MyLock lock(mutex);
_loadThumbnail(firstTrial);
}
/*
* Save thumbnail's data to the cache - NON PROTECTED
* This includes:
@@ -1178,7 +1164,7 @@ void Thumbnail::applyAutoExp (rtengine::procparams::ProcParams& pparams)
}
}
const CacheImageData* Thumbnail::getCacheImageData()
const CacheImageData* Thumbnail::getCacheImageData() const
{
return &cfs;
}