Mercurial > hg > forks > UniversalIndentGUI
comparison 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 |
comparison
equal
deleted
inserted
replaced
784:139f68bf6695 | 785:de02d5ea9770 |
---|---|
54 | 54 |
55 #ifdef Q_OS_WIN32 | 55 #ifdef Q_OS_WIN32 |
56 #include <Windows.h> | 56 #include <Windows.h> |
57 #endif | 57 #endif |
58 | 58 |
59 // Avoid unused parameter warnings by this template | |
60 template<typename T> | |
61 inline void UNUSED_PARAMETER_WARNING_AVOID(T){} | |
62 | |
59 //! \defgroup grp_Indenter All concerning handling of the indenter. | 63 //! \defgroup grp_Indenter All concerning handling of the indenter. |
60 | 64 |
61 /*! | 65 /*! |
62 \class IndentHandler | 66 \class IndentHandler |
63 \ingroup grp_Indenter | 67 \ingroup grp_Indenter |
1719 } | 1723 } |
1720 #endif // UNIVERSALINDENTGUI_NPP_EXPORTS | 1724 #endif // UNIVERSALINDENTGUI_NPP_EXPORTS |
1721 } | 1725 } |
1722 | 1726 |
1723 void IndentHandler::wheelEvent( QWheelEvent *event ) { | 1727 void IndentHandler::wheelEvent( QWheelEvent *event ) { |
1728 UNUSED_PARAMETER_WARNING_AVOID(event); | |
1724 #ifdef UNIVERSALINDENTGUI_NPP_EXPORTS | 1729 #ifdef UNIVERSALINDENTGUI_NPP_EXPORTS |
1725 QWidget::wheelEvent( event ); | 1730 QWidget::wheelEvent( event ); |
1726 updateDrawing(); | 1731 updateDrawing(); |
1727 #endif // UNIVERSALINDENTGUI_NPP_EXPORTS | 1732 #endif // UNIVERSALINDENTGUI_NPP_EXPORTS |
1728 } | 1733 } |