kde31rc2: compile breaks in kdelibs

David Faure david at mandrakesoft.com
Fri Nov 8 19:55:17 GMT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 08 November 2002 20:29, Andreas Sturm wrote:
> Hi!
> 
> I am try to compile kde 3.1rc2 at the moment. Compiling breaks in kdelibs on
> kio/kio/kuserprofile.cpp:
> 
> cc-1522 CC: ERROR File = kuserprofile.cpp, Line = 135
>   The symbol type "QValueList<KServiceOffer>::Iterator" cannot have a template
>           argument list.
> 
>       OfferList::Iterator<KServiceOffer> itOffers = offers.begin();
>                  ^

Indeed, code looks wrong. Please try this patch.

diff -u -p -r1.46 kuserprofile.cpp
- --- kuserprofile.cpp    2002/10/21 18:35:45     1.46
+++ kuserprofile.cpp    2002/11/08 19:54:44
@@ -132,7 +132,7 @@ KServiceTypeProfile::OfferList KServiceT
     }

     // Collect services, to make the next loop faster
- -    OfferList::Iterator<KServiceOffer> itOffers = offers.begin();
+    OfferList::Iterator itOffers = offers.begin();
     for( ; itOffers != offers.end(); ++itOffers )
         serviceList += (*itOffers).service()->desktopEntryPath(); // this should identify each service uniquely
     //kdDebug(7014) << "serviceList: " << serviceList.join(",") << endl;

- -- 
David FAURE, david at mandrakesoft.com, faure at kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
Get the latest KOffice - http://download.kde.org/stable/koffice-1.2/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9zBal72KcVAmwbhARAs8ZAKCVJseLPL9e3F6CfoioCY+wxR0GBgCgkFRM
02eZvU6nSALwvRRWzo8dhwE=
=GCIf
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list