Cppcheck: Fixed some issues found by Flössie during review of my changes

This commit is contained in:
heckflosse
2016-10-04 23:50:44 +02:00
parent 566d4c9822
commit e82b60cd03
9 changed files with 9 additions and 12 deletions

View File

@@ -1677,10 +1677,7 @@ SSEFUNCTION void ImProcFunctions::RGB_denoise(int kall, Imagefloat * src, Imagef
}
delete labdn;
if (Lin) {
delete Lin;
}
delete Lin;
}//end of tile row
}//end of tile loop

View File

@@ -276,7 +276,7 @@ float LCPMapper::calcVignetteFac(int x, int y) const
+ 2.*aVig[0] * aVig[2] - 3.*param0Sqr * aVig[1]) * rsqr * rsqr));
}
LCPProfile::LCPProfile(Glib::ustring fname)
LCPProfile::LCPProfile(const Glib::ustring &fname)
{
const int BufferSize = 8192;
char buf[BufferSize];

View File

@@ -89,7 +89,7 @@ public:
static const int MaxPersModelCount = 3000;
LCPPersModel* aPersModel[MaxPersModelCount]; // Do NOT use std::list or something, it's buggy in GCC!
explicit LCPProfile(Glib::ustring fname);
explicit LCPProfile(const Glib::ustring &fname);
void calcParams(int mode, float focalLength, float focusDist, float aperture, LCPModelCommon *pCorr1, LCPModelCommon *pCorr2, LCPModelCommon *pCorr3) const; // Interpolates between the persModels frames