Re: CVS: commit msevior abi/src/text/ptbl/xp pd_Document.cpp pt_PT_InsertObject.cpp

From: <msevior_at_physics.unimelb.edu.au>
Date: Sun Oct 15 2006 - 05:23:18 CEST

>
> --- cvs@abisource.com wrote:
>
>>
>> Update of /cvsroot/abi/src/text/ptbl/xp
>> In directory
>> abiword.snt.utwente.nl:/tmp/cvs-serv23115/src/text/ptbl/xp
>>
>> Modified Files:
>> pd_Document.cpp pt_PT_InsertObject.cpp
>> Log Message:
>>
>> Honour image properties in abicollab.
>>
>>
>> Index: pt_PT_InsertObject.cpp
>> ===================================================================
>> RCS file: /cvsroot/abi/src/text/ptbl/xp/pt_PT_InsertObject.cpp,v
>> retrieving revision 1.30
>> retrieving revision 1.31
>> diff -u -d -r1.30 -r1.31
>> --- pt_PT_InsertObject.cpp 16 Sep 2006 17:04:50 -0000 1.30
>> +++ pt_PT_InsertObject.cpp 14 Oct 2006 23:55:17 -0000 1.31
>> @@ -251,9 +251,36 @@
>> UT_return_val_if_fail (m_pts==PTS_Editing,false);
>>
>> // store the attributes and properties and get an index to them.
>> -
>> + UT_UTF8String sProps;
>> + UT_sint32 i = 0;
>> + sProps.clear();
>
> <cut>
>
>> + UT_GenericVector<XML_Char*> Atts;
>> + Atts.clear();
>
> Are these clear() calls necessary right after declaration?
>

HI Sum1,
        In principle they are totally unneccessary. However I grew up in a
time when one couldn;t be sure eaxctly what compilers would do in
these scenarios so I always like to explicitly initialize my
variables.

It's a habit.

Cheers

Martin

> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
Received on Sun Oct 15 05:24:22 2006

This archive was generated by hypermail 2.1.8 : Sun Oct 15 2006 - 05:24:22 CEST