Hi Pierre-André,
Hello,

while compiling the new chart module, an error appeared :

Making: ../../unxlngi6/slo/DataSeriesHelper.obj
g++ -Wreturn-type -fmessage-length=0 -c -I. -I. -I../inc -I../../source/inc [...]
-o ../../unxlngi6/slo/DataSeriesHelper.o 
/home/pagalmes/workspace/OpenOffice/chart2/source/tools/DataSeriesHelper.cxx
/home/pagalmes/workspace/OpenOffice/chart2/source/tools/DataSeriesHelper.cxx:298: erreur: explicit qualification in declaration of `chart::StackMode chart::DataSeriesHelper::getStackModeFromSeries(const [...]

The related file is :
/home/pagalmes/workspace/OpenOffice/chart2/source/tools/DataSeriesHelper.cxx

The errors are related to the new version of gcc which is more strict than the previous versions. Have a look at the following page :
http://wiki.services.openoffice.org/wiki/Writing_correct_Cplusplus#Extra_Qualification

So, the code line 298 and 384 have to be changed :

StackMode DataSeriesHelper::getStackModeFromSeries(
->
StackMode getStackModeFromSeries(

and :

void DataSeriesHelper::setStackModeAtSeries(
->
void setStackModeAtSeries(
Ooops, yes that's correct. The DataSeriesHelper was a class with only static methods before. I changed this to a namespace, and obviously missed those two places. Fixed in version 1.1.4.22.

I also noticed another small mistake on line 51 :
#include <com/sun/star/chart2/data/LabelOrigin.hpp

moved to :
#include <com/sun/star/chart2/data/LabelOrigin.hpp>
This is wicked! Without the explicit include guards that obviously never included this line, this would never have compiled. Well, fixed as well.

I hope the code will soon compile completely.

Thanks,
Bjoern

P.S.: If you have again build problems like this, it would be fine for me if you would just post them here for a quick fix. Or, alternatively write an Issue. Please set the Type to "PATCH", if you provide one. You can assign such issues directly to "[EMAIL PROTECTED]" (I mean, I suppose you can do that via Bugzilla, dont'you?).

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to