added the SAL_N_ELEMENTS to construction and destruction, removed unused code and includes<br><br>I removed some commented OSL_TRACE statements... but were they really needed still?<br><br>best wishes<br>René<br><br><div class="gmail_quote">
On Sat, Oct 16, 2010 at 6:47 PM, René Kjellerup <span dir="ltr"><<a href="mailto:rk.katana.steel@gmail.com">rk.katana.steel@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<p>Wow... a simple symbol mistake of the brain, all the includes seemed to have hxx extension so....</p>
<p>It complies now pulling a diff together.<br>
</p><div><div></div><div class="h5">
<div class="gmail_quote">On Oct 16, 2010 3:30 PM, "René Kjellerup" <<a href="mailto:rk.katana.steel@gmail.com" target="_blank">rk.katana.steel@gmail.com</a>> wrote:<br type="attribution">> Okay I've now a beginning of a build of chart2 and I've added:<br>
> #include <sal/macros.h><br>> To the file, but the compilation says that the file is not found,<br>> So where do one add the sal depends to the module? (or simply the includes)<br>> On Oct 14, 2010 10:11 PM, "Michael Meeks" <<a href="mailto:michael.meeks@novell.com" target="_blank">michael.meeks@novell.com</a>> wrote:<br>
>> Hi Rene,<br>>><br>>> On Thu, 2010-10-14 at 19:05 +0200, René Kjellerup wrote:<br>>>> I've looked through the calc's chart2 source and translated and spell<br>>>> corrected a few comments in the view code<br>
>><br>>> Cool - nice work thanks for that; I pushed it.<br>>><br>>>> in the ChartItemPool I've added the use of SAL_N_ELEMENTS(array) too<br>>><br>>> Yep; the slight issue here though is that we need to re-arrange the<br>
>> code a bit. Your changes would work, but only if SCH_ATTR_START == 0 -<br>>> since the range is offset otherwise. It would work if we had:<br>>><br>>> - for( i = SCHATTR_START; i <= SCHATTR_END; i++ )<br>
>> + for( i = 0; i <= SAL_N_ELEMENTS(pItemInfos); i++ )<br>>> {<br>>> - pItemInfos[i - SCHATTR_START]._nSID = 0;<br>>> + pItemInfos[i]._nSID = 0;<br>>><br>>> etc. ;-) it could perhaps be re-factored like that if you want, but<br>
>> prolly best to compile/test it.<br>>><br>>> Anyhow - thanks for your work ! looking forward to what you work on<br>>> next - is there any area of LibreOffice you're particularly interested<br>
>> in contributing to ?<br>>><br>>> All the best,<br>>><br>>> Michael.<br>>><br>>> --<br>>> <a href="mailto:michael.meeks@novell.com" target="_blank">michael.meeks@novell.com</a> <><, Pseudo Engineer, itinerant idiot<br>
>><br>>><br></div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>-- as life grows older, I gain experience.<br>