Fix some issues reported by coverity

This commit is contained in:
heckflosse
2018-11-16 20:48:33 +01:00
parent 91706c284a
commit 1fa253ba63
12 changed files with 15 additions and 15 deletions

View File

@@ -2825,7 +2825,7 @@ void RawImageSource::flushRGB()
}
}
void RawImageSource::HLRecovery_Global(ToneCurveParams hrp)
void RawImageSource::HLRecovery_Global(const ToneCurveParams &hrp)
{
if (hrp.hrenabled && hrp.method == "Color") {
if(!rgbSourceModified) {
@@ -3236,10 +3236,10 @@ void RawImageSource::copyOriginalPixels(const RAWParams &raw, RawImage *src, Raw
}
}
void RawImageSource::cfaboxblur(RawImage *riFlatFile, float* cfablur, const int boxH, const int boxW)
void RawImageSource::cfaboxblur(RawImage *riFlatFile, float* cfablur, int boxH, int boxW)
{
if(boxW == 0 && boxH == 0) { // nothing to blur
if (boxW < 0 || boxH < 0 || (boxW == 0 && boxH == 0)) { // nothing to blur or negative values
memcpy(cfablur, riFlatFile->data[0], W * H * sizeof(float));
return;
}