Fix coverity issue

This commit is contained in:
Hombre57 2017-10-13 23:25:24 +02:00
parent 2956be333b
commit dfe40677e2
5 changed files with 5 additions and 5 deletions

View File

@ -757,7 +757,7 @@ unsigned int FramesData::getFrameCount () const
return dcrawFrameCount ? dcrawFrameCount : frames.size();
}
FrameData *FramesData::getFrameData (int frame) const
FrameData *FramesData::getFrameData (unsigned int frame) const
{
return frames.empty() || frame >= frames.size() ? nullptr : frames.at(frame);
}

View File

@ -101,7 +101,7 @@ public:
void setDCRawFrameCount (unsigned int frameCount);
unsigned int getRootCount () const;
unsigned int getFrameCount () const;
FrameData *getFrameData (int frame) const;
FrameData *getFrameData (unsigned int frame) const;
bool getPixelShift (unsigned int frame = 0) const;
bool getHDR (unsigned int frame = 0) const;
IIOSampleFormat getSampleFormat (unsigned int frame = 0) const;

View File

@ -107,7 +107,7 @@ public:
return 0;
}
virtual FrameData* getImageData (int frameNum) = 0;
virtual FrameData* getImageData (unsigned int frameNum) = 0;
virtual ImageMatrices* getImageMatrices () = 0;
virtual bool isRAW () const = 0;
virtual DCPProfile* getDCP (const ColorManagementParams &cmp, ColorTemp &wb, DCPProfile::ApplyState &as)

View File

@ -166,7 +166,7 @@ public:
return ri->get_rotateDegree();
}
FrameData* getImageData (int frameNum)
FrameData* getImageData (unsigned int frameNum)
{
return idata->getFrameData (frameNum);
}

View File

@ -68,7 +68,7 @@ public:
void getFullSize (int& w, int& h, int tr = TR_NONE);
void getSize (const PreviewProps &pp, int& w, int& h);
FrameData* getImageData (int frameNum)
FrameData* getImageData (unsigned int frameNum)
{
return idata->getFrameData (frameNum);
}