[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/kdelibs4_snapshot/kdecore
From:       Ingo Klöcker <kloecker () kde ! org>
Date:       2005-10-03 22:57:32
Message-ID: 1128380252.299876.16735.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 467008 by kloecker:

From kdemacros.h:
 * Functions which are implemented inline are handled differently: for them,
 * the KDE_DEPRECATED macro is inserted at the front, right before the return
 * type, but after "static" or "virtual":
 *
 * \code
 * KDE_DEPRECATED void deprecatedInlineFunctionA() { .. }
 * virtual KDE_DEPRECATED int deprecatedInlineFunctionB() { .. }
 * static KDE_DEPRECATED bool deprecatedInlineFunctionC() { .. }
 * \end

Obviously this is also true for "inline".


 M  +1 -2      kglobal.h  


--- branches/work/kdelibs4_snapshot/kdecore/kglobal.h #467007:467008
@@ -209,8 +209,7 @@
  */
 
 template<class T>
-KDE_DEPRECATED
-inline T kClamp( const T& x, const T& low, const T& high )
+inline KDE_DEPRECATED T kClamp( const T& x, const T& low, const T& high )
 {
     if ( x < low )       return low;
     else if ( high < x ) return high;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic