[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: [PATCH?] KServiceTypes.h fails to compile
From: Adriaan de Groot <adridg () cs ! kun ! nl>
Date: 2003-10-19 12:36:51
[Download RAW message or body]
The attached patch (a hack) shows what I need to change to get kdelibs/kio/kio
to compile. The error I get (gcc 2.95.3) is:
mnt/src/kde-HEAD//kdelibs/kio/kio/kservicetype.cpp:326: new declaration
`struct KSharedPtr<KServiceType> KServiceType::parentType()'
/mnt/src/kde-HEAD/kdelibs/kio/kio/kservicetype.h:187: ambiguates old
declaration `struct KSharedPtr<KSycocaEntry> KServiceType::parentType()'
It actually looks like it's a gcc bug, since both return types are declared
KServiceType::Ptr, but gcc is picking up the wrong one in the header file.
["kst.diff" (text/x-diff)]
Index: kservicetype.h
===================================================================
RCS file: /home/kde/kdelibs/kio/kio/kservicetype.h,v
retrieving revision 1.39
diff -u -3 -p -r1.39 kservicetype.h
--- kservicetype.h 17 Oct 2003 10:58:18 -0000 1.39
+++ kservicetype.h 19 Oct 2003 12:30:54 -0000
@@ -184,7 +184,7 @@ public:
* @internal
* Pointer to parent serice type
*/
- KServiceType::Ptr parentType();
+ /* KServiceType:: */ Ptr parentType();
/**
* @internal
* Register service that provides this service type
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic