Hello,
I have this code, I try to generate random numbers, but I have problems when
I build:

protected double getRandomDouble()
 {
     return (maRandom.nextInt(1000) * maRandom.nextDouble());
 }



Here is the error:
/home/ivan/aoo/main/cui/source/tabpages/tpcolor.cxx: In member function
'long int SvxColorTabPage::ClickAddHdl_Impl(void*)':
/home/ivan/aoo/main/cui/source/tabpages/tpcolor.cxx:547:2: error: expected
primary-expression before 'protected'
/home/ivan/aoo/main/cui/source/tabpages/tpcolor.cxx:547:2: error: expected
';' before 'protected'
dmake:  Error code 1, while making '../../unxlngi6.pro/slo/tpcolor.obj'
ERROR: error 65280 occurred while making
/home/ivan/aoo/main/cui/source/tabpages

This snippet, I want to implement it in tpcolor.cxx
http://opengrok.adfinis-sygroup.org/source/xref/aoo-trunk/main/cui/source/tabpages/tpcolor.cxx#465

What could be the error in this code?

Helpme!
Regards.

Reply via email to