fix -Wextra in Image

This commit is contained in:
wmayer 2016-09-22 14:23:25 +02:00
parent f944ab3846
commit 49072208ee
3 changed files with 11 additions and 3 deletions

View File

@ -60,6 +60,8 @@ CmdImageOpen::CmdImageOpen()
void CmdImageOpen::activated(int iMsg)
{
Q_UNUSED(iMsg);
// add all supported QImage formats
QString formats;
QTextStream str(&formats);
@ -102,6 +104,8 @@ CmdCreateImagePlane::CmdCreateImagePlane()
void CmdCreateImagePlane::activated(int iMsg)
{
Q_UNUSED(iMsg);
QString formats;
QTextStream str(&formats);
str << QObject::tr("Images") << " (";

View File

@ -457,7 +457,7 @@ void ImageView::wheelEvent(QWheelEvent * cEvent)
}
}
void ImageView::showEvent (QShowEvent * e)
void ImageView::showEvent (QShowEvent *)
{
_pGLImageBox->setFocus();
}
@ -607,6 +607,8 @@ void ImageView::select(int currX, int currY)
{
// base class implementation does nothing
// override this method and implement selection capability if required
Q_UNUSED(currX);
Q_UNUSED(currY);
}
// Add selection at the given position
@ -614,6 +616,8 @@ void ImageView::addSelect(int currX, int currY)
{
// base class implementation does nothing
// override this method and implement selection capability if required
Q_UNUSED(currX);
Q_UNUSED(currY);
}
// Draw any 2D graphics necessary

View File

@ -41,8 +41,8 @@ public:
const char *getName(void) const {return "ImageView";}
void onUpdate(void){};
bool onMsg(const char* pMsg,const char** ppReturn){ return true; }
bool onHasMsg(const char* pMsg) const { return false; }
bool onMsg(const char* ,const char** ){ return true; }
bool onHasMsg(const char* ) const { return false; }
virtual void clearImage();
virtual int createImageCopy(void* pSrcPixelData, unsigned long width, unsigned long height, int format, unsigned short numSigBitsPerSample, int displayMode = IV_DISPLAY_RESET);