[PATCH] Reduce CXString abuse

Dmitri Gribenko gribozavr at gmail.com
Fri Feb 1 15:14:17 PST 2013


Hello,

As suggested on IRC, ContainerUSR is not really a CXString, but it
should own the underlying memory buffer.  Thus, it is better to change
the type to std::string.  This will not introduce extra copying
overhead, since the workaround that is being removed was already
making a copy.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reduce-cxstring-abuse-v1.patch
Type: application/octet-stream
Size: 3892 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130202/20c3cb3f/attachment.obj>


More information about the cfe-commits mailing list