Code cleanups

on behalf of Lebedev, see issue 1355
This commit is contained in:
Oliver Duis
2012-05-06 22:10:37 +02:00
parent 686188d6bb
commit 1483ecb47c
125 changed files with 750 additions and 747 deletions

View File

@@ -803,7 +803,7 @@ IImage8* Thumbnail::processImage (const procparams::ProcParams& params, int rhei
return readyImg;
}
int Thumbnail::getImageWidth (const procparams::ProcParams& params, int rheight, float &ratio) {
int Thumbnail::getImageWidth (const procparams::ProcParams& params, int rheight, float &ratio) const {
if (thumbImg==NULL) return 0; // Can happen if thumb is just building and GUI comes in with resize wishes
int rwidth;
@@ -836,7 +836,7 @@ void Thumbnail::getCamWB (double& temp, double& green) {
green = currWB.getGreen ();
}
void Thumbnail::getAutoWB (double& temp, double& green) {
void Thumbnail::getAutoWB (double& temp, double& green) const {
temp = autowbTemp;
green = autowbGreen;
@@ -905,7 +905,7 @@ void Thumbnail::getSpotWB (const procparams::ProcParams& params, int xp, int yp,
rtemp = ct.getTemp ();
rgreen = ct.getGreen ();
}
void Thumbnail::transformPixel (int x, int y, int tran, int& tx, int& ty) {
void Thumbnail::transformPixel (int x, int y, int tran, int& tx, int& ty) const {
int W = thumbImg->width;
int H = thumbImg->height;