[Kde-windows] kdelibs\kdecore & msvc

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Tue Oct 18 22:23:10 CEST 2005


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

Jaros?aw Staniek schrieb:

> Christian Ehrlicher said the following, On 2005-10-18 21:18:
> 
> 
>>-----BEGIN PGP SIGNED MESSAGE-----
>>Hash: SHA1
>>
>>Hello
>>
>>I'm just compiling kdecore with msvc and it looks ok. But I hit some
>>compiler warnings:
>>
>>kdeui\kstdaction_p.h -> a semicolon too much in line 154 ?
>>kdecore\kapplication_win.cpp -> KApplication::invokeHelp() seems to be
>>gone...
>>
>>private variables are stored in an own class/struct
>>(KAboutPerson::Private for example). But the problem is, that sometimes
>>it is declared as a struct and sometimes as a class. This wouldn't be a
>>problem when it is defined correct in the base class definition but
>>sometimes I see this (and msvc is complaining):
>>
>>struct KAboutPerson::Private
>>{
>>...
>>}
>>
>>class KAboutPerson
>>{
>>...
>>private:
>>    class Private;
> 
> 
> change to struct Private; - see below
> 
> 
> 
>>    Private *const d;
>>}
>>
>>How to solve this? I would prefer 'class' to not change all headers and
>>it would confuse others when one class is using 'class' and the other
>>'struct' for their private variables...
> 
> 
> I was fixing such cases quite frequently in kdelibs3.
> You could provide patches if there's inconsistency like above. In above 
> example, class should be replaced by struct (doing conversely - changing 
> struct to class - may break things by hidding members as private).
> 
> In short, always change the to the same type (struct/class) as original 
> declaration says.
Ok, I'll do so :)
Here the next problem:
kglobal.cpp:212 -> __attribute__((destructor))
I don't know if/how I could port this to msvc.
And I get a suprious error in qwidget.h:391 because QT_MOC_COMPAT seems
 not to be set correct (maybe because of QT3_SUPPORT?)

Christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFDVVmunNKwkgf+zVMRAkIYAJ9FXPs84R1GDEVPz7mGnsBavUGzsQCaAhrw
2OTj2q8UVjnQLEqWjvSQy5E=
=SdyQ
-----END PGP SIGNATURE-----



More information about the Kde-windows mailing list