Missing KCompletionMatches copy operator

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Sun Dec 2 22:08:37 GMT 2007


Andreas Pakulat schrieb:
> On 02.12.07 22:26:14, Christian Ehrlicher wrote:
>> Hi,
>>
>> due to a missing copy operator I get a crash (on windows) when konqueror
>> tries to display historyPopupCompletionItems.
>> It happens because msvc (don't know if/how this works with gcc) creates
>> a default copy ctor which does not copy the d-ptr correctly -> double
>> free d-ptr -> crash.
>>
>> Afaics therer are also other classes which have d-ptr but no copy ctor
>> (at least KCompletionBase and KCompletion).
> 
> KCompletion can't be copied (its a QObject subclass)
agreed
> and as far as I can
> see KCompletionBase is not used as value type thus no need for a copy
> constructor or assignment operator. If of course you can come up with a
> use-case where KCompletionBase is subclassed by a class that is not a
> QObject subclass as well and thus does allow copying itself...
> 
KCompletionBase is exported and therefore public - this should be
usecase enough.


Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20071202/8dd4ea3c/attachment.sig>


More information about the kde-core-devel mailing list