Commit eaacd019 authored by Stéphane Albert's avatar Stéphane Albert

COMP: Fixed unused function arguments compilation errors in DEBUG/RELEASE modes.

parent abc01ec7
......@@ -532,7 +532,7 @@ InputProcessXMLInitializer
inline
ToolTipInitializer::result_type
ToolTipInitializer
::operator () ( argument_type widget ) const
::operator () ( argument_type mvdUseInDebug( widget ) ) const
{
assert( widget!=NULL );
......
......@@ -314,7 +314,7 @@ StackedLayerModel
/*******************************************************************************/
std::string
StackedLayerModel
::GenerateKey( AbstractLayerModel * layerModel )
::GenerateKey( AbstractLayerModel * mvdUseInDebug( layerModel ) )
{
std::ostringstream oss;
......
......@@ -530,7 +530,7 @@ ImageViewManipulator
/******************************************************************************/
void
ImageViewManipulator
::ResizeEvent( QResizeEvent* event )
::ResizeEvent( QResizeEvent * mvdUseInDebug( event ) )
{
assert( event!=NULL );
......
......@@ -220,7 +220,7 @@ QuicklookViewManipulator
/******************************************************************************/
void
QuicklookViewManipulator
::WheelEvent( QWheelEvent* event )
::WheelEvent( QWheelEvent * mvdUseInDebug( event ) )
{
assert( event!=NULL );
}
......@@ -228,7 +228,7 @@ QuicklookViewManipulator
/******************************************************************************/
void
QuicklookViewManipulator
::KeyPressEvent( QKeyEvent* event )
::KeyPressEvent( QKeyEvent * mvdUseInDebug( event ) )
{
assert( event!=NULL );
......@@ -238,7 +238,7 @@ QuicklookViewManipulator
/******************************************************************************/
void
QuicklookViewManipulator
::KeyReleaseEvent( QKeyEvent* event )
::KeyReleaseEvent( QKeyEvent * mvdUseInDebug( event ) )
{
assert( event!=NULL );
......
......@@ -148,4 +148,15 @@
// #if (defined( _DEBUG ) && FORCE_DISABLE) || FORCE_ENABLE
#define USE_OPTION_SAMPLE ((defined( _DEBUG ) && 0) || 0)
//
// Macros
#ifdef _DEBUG
# define mvdUseInDebug( name ) name
# define mvdUseInRelease( name )
#else // _DEBUG
# define mvdUseInDebug( name )
# define mvdUseInRelease( name ) name
#endif // _DEBUG
#endif // __ConfigureMonteverdi_h
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment