Re: cString operator= with same buffer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Klaus Schmidinger on Sunday 20 November 2005 12:41:
> A copy ctor would certainly be a good idea.
> Please send a patch and let us know if that fixes
> your problem.

Adding the copy constructor fixes my problem by avoiding it.
So I made two patches, both with the copy constructor, one also has a check 
for equal buffers in operator= and doesn't free them in this case.

Greetings
Holger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vdr-cstring-copyctor-buffercheck.diff
Type: text/x-diff
Size: 1094 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/vdr/attachments/20051120/dc5b4b62/vdr-cstring-copyctor-buffercheck.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vdr-cstring-copyctor.diff
Type: text/x-diff
Size: 898 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/vdr/attachments/20051120/dc5b4b62/vdr-cstring-copyctor.bin

[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux