From 7d40df87401ad303bea05d77fa51c53918a78014 Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Fri, 27 Apr 2012 23:04:56 -0500 Subject: GCC 4.7 fix needed to build tdebase. This partially resolves bug report 958. Thanks to Francois Andriot. --- dcop/dcoptypes.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dcop') diff --git a/dcop/dcoptypes.h b/dcop/dcoptypes.h index 5c9d13745..e81639baa 100644 --- a/dcop/dcoptypes.h +++ b/dcop/dcoptypes.h @@ -22,6 +22,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #ifndef DCOPTYPES_H #define DCOPTYPES_H +// generic template fallback for unknown types +template inline const char* dcopTypeName( const T& ) { return ""; } + #include // standard c/c++ types @@ -70,9 +73,6 @@ class TQVariant; inline const char* dcopTypeName( const TQVariant& ) { return "T // And some KDE types class KURL; inline const char* dcopTypeName( const KURL& ) { return "KURL"; } -// generic template fallback for unknown types -template inline const char* dcopTypeName( const T& ) { return ""; } - // type initialization for standard c/c++ types inline void dcopTypeInit(bool& b){b=false;} inline void dcopTypeInit(char& c){c=0;} -- cgit v1.2.1