Hi Michael, On Sunday, 2011-08-28 23:23:03 -0000, [email protected] wrote:
> URL: http://svn.apache.org/viewvc?rev=1162609&view=rev > --- incubator/ooo/trunk/main/autodoc/inc/ary/idl/i_ce2s.hxx (original) > +++ incubator/ooo/trunk/main/autodoc/inc/ary/idl/i_ce2s.hxx Sun Aug 28 > 23:23:03 2011 > @@ -50,6 +50,7 @@ class Ce_2s > { > public: > // LIFECYCLE > + explicit Ce_2s () { } > virtual ~Ce_2s(); > > static DYN Ce_2s * Create_( I took a different approach without introducing that ctor: https://svn.apache.org/viewvc/incubator/ooo/trunk/main/autodoc/source/ary/idl/i_ce.cxx?r1=1162288&r2=1162554&pathrev=1162554&diff_format=h IMHO holding a const dummy just to be able to return a const reference if the factory didn't yet create an instance is nonsense. > --- incubator/ooo/trunk/main/hwpfilter/source/list.hxx (original) > +++ incubator/ooo/trunk/main/hwpfilter/source/list.hxx Sun Aug 28 23:23:03 > 2011 > @@ -50,7 +50,7 @@ class LinkedList > > public: > /// construct list with one element (pItem) or no element (pItem == NULL) > - LinkedList( T* pItem = NULL ); > + LinkedList( T* pItem = 0 ); Well, yes, or #include <cstddef> instead, which I did. Eike -- PGP/OpenPGP/GnuPG encrypted mail preferred in all private communication. Key ID: 0x293C05FD - 997A 4C60 CE41 0149 0DB3 9E96 2F1A D073 293C 05FD
signature.asc
Description: Digital signature
