Fix some issues reported by coverity
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user