LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File dcop-header-fix-gcc47.patch of Package kdelibs3 (Project KDE:KDE3)

diff -wruN kdelibs-3.5.10.orig/dcop/dcoptypes.h kdelibs-3.5.10/dcop/dcoptypes.h
--- kdelibs-3.5.10.orig/dcop/dcoptypes.h	2005-09-10 12:27:23.000000000 +0400
+++ kdelibs-3.5.10/dcop/dcoptypes.h	2012-04-29 21:44:52.823786005 +0400
@@ -22,6 +22,9 @@
 #ifndef DCOPTYPES_H
 #define DCOPTYPES_H
 
+// generic template fallback for unknown types
+template <class T> inline const char* dcopTypeName( const T& ) { return "<unknown>"; }
+
 #include <dcopref.h>
 
 // standard c/c++ types
@@ -70,9 +73,6 @@
 // And some KDE types
 class KURL; inline const char* dcopTypeName( const KURL& ) { return "KURL"; }
 
-// generic template fallback for unknown types
-template <class T> inline const char* dcopTypeName( const T& ) { return "<unknown>"; }
-
 // type initialization for standard c/c++ types
 inline void dcopTypeInit(bool& b){b=false;}
 inline void dcopTypeInit(char& c){c=0;}