diff src/IndentHandler.cpp @ 785:de02d5ea9770

Avoid some unused parameter and unused variable warnings. git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@1062 59b1889a-e5ac-428c-b0c7-476e01d41282
author thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
date Thu, 29 Dec 2011 10:45:49 +0000
parents f3631db17328
children fa7aa6f543f1
line wrap: on
line diff
--- a/src/IndentHandler.cpp	Thu Dec 29 10:44:46 2011 +0000
+++ b/src/IndentHandler.cpp	Thu Dec 29 10:45:49 2011 +0000
@@ -56,6 +56,10 @@
 #include <Windows.h>
 #endif
 
+// Avoid unused parameter warnings by this template
+template<typename T>
+inline void UNUSED_PARAMETER_WARNING_AVOID(T){}
+
 //! \defgroup grp_Indenter All concerning handling of the indenter.
 
 /*!
@@ -1721,6 +1725,7 @@
 }
 
 void IndentHandler::wheelEvent( QWheelEvent *event ) {
+	UNUSED_PARAMETER_WARNING_AVOID(event);
 #ifdef UNIVERSALINDENTGUI_NPP_EXPORTS
     QWidget::wheelEvent( event );
     updateDrawing();