Apache OpenOffice (AOO) Bugzilla – Issue 17827
IRIX: svx: The initial value of a reference to a non-const must be an lvalue.
Last modified: 2010-03-29 20:55:54 UTC
CC -c -I. -I. -I../inc -I../../inc -I../../unx/inc -I../../unxirxm3.pro/inc -I. -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solver/645/unxirxm3.pro/inc/stl -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solver/645/unxirxm3.pro/inc/external -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solver/645/unxirxm3.pro/inc -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solenv/unxirxm3/inc -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solenv/inc -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/res -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solver/645/unxirxm3.pro/inc/stl -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solenv/inc/Xp31 -I/usr/java2/include -I/usr/java2/include/irix -I/usr/java2/include/native_threads/include -I. -I../../res -I. -O2 -DDG_DLL -LANG:ansi-for-init-scope=OFF -LANG:std -LANG:libc_in_namespace_std=ON -LANG:exceptions=OFF -KPIC -DIRIX -DUNX -DVCL -DC730 -DC730 -DMIPS -DCVER=C730 -D_USE_NAMESPACE -DSTLPORT_VERSION=0x450 -D_USE_NAMESPACE=1 -DNEW_SOLAR -DSGI_STL -D__STL_THROW_RANGE_ERRORS -D__DMAKE -DUNIX -DCPPU_ENV=MipsPro -DSUPD=645 -DBUILD=8639 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_OFF -DCUI -DSOLAR_JAVA -DSRX645 -DSHAREDLIB -D_DLL_ -DMULTITHREAD -w -o ../../unxirxm3.pro/slo/srchdlg.o /build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/svx/source/dialog/srchdlg.cxx cc-1440 CC: ERROR File = /build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/svx/source/dialog/srchdlg.cxx, Line = 585 The initial value of a reference to a non-const must be an lvalue. INT32 &rFlags = (INT32) nTransliterationFlags; ^
The source looks like this: INT32 SvxSearchDialog::GetTransliterationFlags() const { INT32 &rFlags = (INT32) nTransliterationFlags; if (!aMatchCaseCB.IsChecked()) rFlags |= TransliterationModules_IGNORE_CASE; else rFlags &= ~TransliterationModules_IGNORE_CASE; if ( !aJapMatchFullHalfWidthCB.IsChecked()) rFlags |= TransliterationModules_IGNORE_WIDTH; else rFlags &= ~TransliterationModules_IGNORE_WIDTH; return nTransliterationFlags; } I think (and I could be wrong) that this is bad C++. The function is marked const, yet it changes nTransliterationFlags. I have changed rFlags so its not a refence, and changed the function to return rFlags. If someone was relying on nTransliterationFlags changing after a call to this function, then this change will break that. However, it is not compliant C++ the way it is.
set target milestone to 1.1.1
reassigned.
retarget to 2.0
per issue 106845 sb removed the partial irix port, so this doesn't make sense in isolation anymore
closing