--- eventattacher/source/eventattacher.cxx.orig 2001-09-11 17:43:17.000000000 +0200 +++ eventattacher/source/eventattacher.cxx 2003-03-11 08:21:27.000000000 +0100 @@ -925,7 +925,7 @@ reinterpret_cast< XRegistryKey * >( pRegistryKey )->createKey( OUString( RTL_CONSTASCII_USTRINGPARAM( "/" IMPLNAME "/UNO/SERVICES") ))); - Sequence< OUString > & rSNL = + const Sequence< OUString > & rSNL = ::comp_EventAttacher::EventAttacherImpl::getSupportedServiceNames_Static(); const OUString * pArray = rSNL.getConstArray(); for ( sal_Int32 nPos = rSNL.getLength(); nPos--; ) --- xmloff/source/text/XMLChangedRegionImportContext.cxx.orig 2001-11-30 18:43:02.000000000 +0100 +++ xmloff/source/text/XMLChangedRegionImportContext.cxx 2003-03-11 08:23:15.000000000 +0100 @@ -137,7 +137,7 @@ GetKeyByAttrName( xAttrList->getNameByIndex(nAttr), &sLocalName ); - OUString& rValue = xAttrList->getValueByIndex(nAttr); + const OUString& rValue = xAttrList->getValueByIndex(nAttr); if ( XML_NAMESPACE_TEXT == nPrefix ) { if( IsXMLToken( sLocalName, XML_ID ) ) --- xmloff/source/text/txtflde.cxx.orig 2002-11-01 08:34:38.000000000 +0100 +++ xmloff/source/text/txtflde.cxx 2003-03-11 08:24:23.000000000 +0100 @@ -1417,7 +1417,7 @@ case FIELD_ID_DATABASE_DISPLAY: { // get database, table and column name from field master - Reference & xMaster = GetMasterPropertySet(rTextField); + const Reference & xMaster = GetMasterPropertySet(rTextField); ProcessString(XML_DATABASE_NAME, GetStringProperty(sPropertyDataBaseName, xMaster)); ProcessString(XML_TABLE_NAME, --- inet/source/core/ldapmsg.cxx 2003-03-10 10:36:50.000000000 +0000 +++ inet/source/core/ldapmsg.cxx 2003-03-10 10:37:05.000000000 +0000 @@ -1181,7 +1181,7 @@ sal_Bool INetCoreLDAPDeleteRequestMessag return sal_False; LDAP_MESSAGE *pMsg = (LDAP_MESSAGE*)GetpImp(); - LDAP_DN *&rpName = ((LDAP_DN*)(pMsg->protocolOp.deleteRequest)); + LDAP_DN *&rpName = ((pMsg->protocolOp.deleteRequest)); LDAP_STRING_newFromOUString (rpName, rObjectDN); return sal_True; --- sw/source/ui/shells/basesh.cxx 2003-03-10 22:52:17.000000000 +0000 +++ sw/source/ui/shells/basesh.cxx 2003-03-10 22:52:39.000000000 +0000 @@ -738,7 +738,7 @@ void SwBaseShell::Execute(SfxRequest &rR { case FN_REPAGINATE: { - Reference < XModel > & xModel = GetView().GetDocShell()->GetModel(); + const Reference < XModel > & xModel = GetView().GetDocShell()->GetModel(); Reference < XUnoTunnel > xDocTunnel ( xModel, UNO_QUERY ); SwXTextDocument *pDoc = reinterpret_cast < SwXTextDocument * > ( xDocTunnel->getSomething ( SwXTextDocument::getUnoTunnelId() ) ); pDoc->notifyRefreshListeners(); --- sw/source/ui/uno/SwXDocumentSettings.cxx 2003-03-10 22:42:01.000000000 +0000 +++ sw/source/ui/uno/SwXDocumentSettings.cxx 2003-03-10 22:42:29.000000000 +0000 @@ -392,21 +392,21 @@ void SwXDocumentSettings::_setSingleValu break; case HANDLE_CURRENT_DATABASE_DATA_SOURCE: { - SwDBData& rData = mpDoc->GetDBData(); + const SwDBData& rData = mpDoc->GetDBData(); if ( rValue >>= rData.sDataSource ) mpDoc->ChgDBData( rData ); } break; case HANDLE_CURRENT_DATABASE_COMMAND: { - SwDBData& rData = mpDoc->GetDBData(); + const SwDBData& rData = mpDoc->GetDBData(); if ( rValue >>= rData.sCommand ) mpDoc->ChgDBData( rData ); } break; case HANDLE_CURRENT_DATABASE_COMMAND_TYPE: { - SwDBData& rData = mpDoc->GetDBData(); + const SwDBData& rData = mpDoc->GetDBData(); if ( rValue >>= rData.nCommandType ) mpDoc->ChgDBData( rData ); } --- sw/source/filter/xml/xmltexti.cxx 2003-03-10 22:20:21.000000000 +0000 +++ sw/source/filter/xml/xmltexti.cxx 2003-03-10 22:20:37.000000000 +0000 @@ -785,7 +785,7 @@ void SwXMLTextImportHelper::RedlineSetCu void SwXMLTextImportHelper::RedlineAdjustStartNodeCursor( sal_Bool bStart) { - OUString& rId = GetOpenRedlineId(); + const OUString& rId = GetOpenRedlineId(); if ((NULL != pRedlineHelper) && (rId.getLength() > 0)) { Reference xTextRange( GetCursor()->getStart() ); --- vcl/unx/source/gdi/salgdi2.cxx 2003-03-10 12:20:27.000000000 +0000 +++ vcl/unx/source/gdi/salgdi2.cxx 2003-03-10 12:25:17.000000000 +0000 @@ -573,7 +573,7 @@ sal_uInt32 SalPrinterBmp::GetPixelRGB (sal_uInt32 nRow, sal_uInt32 nColumn) const { Scanline pScan = mpScanAccess + nRow * mnScanOffset; - BitmapColor& aColor = mpFncGetPixel (pScan, nColumn, mpBmpBuffer->maColorMask); + BitmapColor aColor = mpFncGetPixel (pScan, nColumn, mpBmpBuffer->maColorMask); return ColorOf (aColor); } @@ -582,7 +582,7 @@ sal_uInt8 SalPrinterBmp::GetPixelGray (sal_uInt32 nRow, sal_uInt32 nColumn) const { Scanline pScan = mpScanAccess + nRow * mnScanOffset; - BitmapColor& aColor = mpFncGetPixel (pScan, nColumn, mpBmpBuffer->maColorMask); + BitmapColor aColor = mpFncGetPixel (pScan, nColumn, mpBmpBuffer->maColorMask); return GrayOf (aColor); } @@ -591,7 +591,7 @@ sal_uInt8 SalPrinterBmp::GetPixelIdx (sal_uInt32 nRow, sal_uInt32 nColumn) const { Scanline pScan = mpScanAccess + nRow * mnScanOffset; - BitmapColor& aColor = mpFncGetPixel (pScan, nColumn, mpBmpBuffer->maColorMask); + BitmapColor aColor = mpFncGetPixel (pScan, nColumn, mpBmpBuffer->maColorMask); if (aColor.IsIndex()) return aColor.GetIndex(); --- i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx 2003-03-10 14:37:16.000000000 +0000 +++ i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx 2003-03-10 14:37:54.000000000 +0000 @@ -388,7 +388,7 @@ DefaultNumberingProvider::makeNumberingS case TRANSLITERATION: { - ::rtl::OUString &tmp = ::rtl::OUString::valueOf( number ); + const ::rtl::OUString &tmp = ::rtl::OUString::valueOf( number ); ::rtl::OUString transliteration; try { ::getPropertyByName(aProperties, "Transliteration", sal_True) >>= transliteration; @@ -422,7 +422,7 @@ DefaultNumberingProvider::makeNumberingS } translit->loadModuleNew( module, aLocale); uno::Sequence< long > offset( tmp.getLength()*2 ); - ::rtl::OUString& res = translit->transliterate(tmp, 0, tmp.getLength(), offset); + const ::rtl::OUString& res = translit->transliterate(tmp, 0, tmp.getLength(), offset); result += res; result += C2U("~"); } --- i18n/source/collator/collator.cxx 2003-03-10 15:45:35.000000000 +0000 +++ i18n/source/collator/collator.cxx 2003-03-10 15:46:26.000000000 +0000 @@ -185,7 +185,7 @@ Collator::loadCollatorAlgorithm(const :: sal_Int32 SAL_CALL Collator::loadDefaultCollator( const ::com::sun::star::lang::Locale& rLocale, sal_Int32 collatorOptions) throw(::com::sun::star::uno::RuntimeException) { - ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::Implementation > + const ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::Implementation > &imp = xLD->getCollatorImplementations(rLocale); for (sal_Int32 i = 0; i < imp.getLength(); i++) @@ -210,7 +210,7 @@ Collator::loadCollatorAlgorithmWithEndUs ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL Collator::listCollatorAlgorithms( const ::com::sun::star::lang::Locale& rLocale ) throw(::com::sun::star::uno::RuntimeException) { - ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::Implementation > + const ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::Implementation > &imp = xLD->getCollatorImplementations(rLocale); ::com::sun::star::uno::Sequence< ::rtl::OUString > list(imp.getLength()); --- xmloff/source/core/nmspmap.cxx 2003-03-10 16:04:01.000000000 +0000 +++ xmloff/source/core/nmspmap.cxx 2003-03-10 16:04:41.000000000 +0000 @@ -256,7 +256,7 @@ OUString SvXMLNamespaceMap::GetQNameByKe sQName.append ( (*aIter).second->sPrefix); sQName.append ( sal_Unicode(':') ); sQName.append ( rLocalName ); - OUString *pString = new OUString ( rLocalName ), &rString = sQName.makeStringAndClear(); + const OUString *pString = new OUString ( rLocalName ), &rString = sQName.makeStringAndClear(); const_cast < QNameCache * > (&aQNameCache)->operator[] ( QNamePair ( nKey, pString ) ) = rString; return rString; } --- xmloff/source/text/XMLChangeImportContext.cxx 2003-03-10 16:37:49.000000000 +0000 +++ xmloff/source/text/XMLChangeImportContext.cxx 2003-03-10 16:39:55.000000000 +0000 @@ -133,7 +133,7 @@ void XMLChangeImportContext::StartElemen // prepare parameters UniReference rHelper = GetImport().GetTextImport(); - OUString& rID = xAttrList->getValueByIndex(nAttr); + const OUString& rID = xAttrList->getValueByIndex(nAttr); // call for bStart and bEnd (may both be true) if (bIsStart) @@ -144,7 +144,8 @@ void XMLChangeImportContext::StartElemen // outside of paragraph and still open? set open redline ID if (bIsOutsideOfParagraph) { - rHelper->SetOpenRedlineId(rID); + OUString crID = rID; + rHelper->SetOpenRedlineId(crID); } } // else: ignore --- starmath/source/register.cxx 2003-03-10 19:07:21.000000000 +0000 +++ starmath/source/register.cxx 2003-03-10 19:07:34.000000000 +0000 @@ -163,7 +163,7 @@ sal_Bool SAL_CALL component_writeInfo( v RTL_CONSTASCII_USTRINGPARAM("/") ) + SmXMLImport_getImplementationName() + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( "/UNO/SERVICES") ) ); - ::com::sun::star::uno::Sequence< rtl::OUString > &rServices = + const ::com::sun::star::uno::Sequence< rtl::OUString > &rServices = SmXMLImport_getSupportedServiceNames(); for(i = 0; i < rServices.getLength(); i++ ) xNewKey->createKey( rServices.getConstArray()[i]); --- sc/source/core/data/cell2.cxx 2003-03-10 20:25:18.000000000 +0000 +++ sc/source/core/data/cell2.cxx 2003-03-10 20:26:11.000000000 +0000 @@ -1198,7 +1198,7 @@ void ScFormulaCell::UpdateTranspose( con t->CalcAbsIfRel( aOldPos ); BOOL bMod; { // own scope for SingleDoubleRefModifier dtor if SingleRef - SingleDoubleRefModifier& rMod = (t->GetType() == svSingleRef ? + const SingleDoubleRefModifier& rMod = (t->GetType() == svSingleRef ? SingleDoubleRefModifier( t->GetSingleRef() ) : SingleDoubleRefModifier( t->GetDoubleRef() )); ComplRefData& rRef = rMod.Ref(); @@ -1227,7 +1227,7 @@ void ScFormulaCell::UpdateTranspose( con t->CalcAbsIfRel( aOldPos ); BOOL bMod; { // own scope for SingleDoubleRefModifier dtor if SingleRef - SingleDoubleRefModifier& rMod = (t->GetType() == svSingleRef ? + const SingleDoubleRefModifier& rMod = (t->GetType() == svSingleRef ? SingleDoubleRefModifier( t->GetSingleRef() ) : SingleDoubleRefModifier( t->GetDoubleRef() )); ComplRefData& rRef = rMod.Ref(); @@ -1286,7 +1286,7 @@ void ScFormulaCell::UpdateGrow( const Sc t->CalcAbsIfRel( aPos ); BOOL bMod; { // own scope for SingleDoubleRefModifier dtor if SingleRef - SingleDoubleRefModifier& rMod = (t->GetType() == svSingleRef ? + const SingleDoubleRefModifier& rMod = (t->GetType() == svSingleRef ? SingleDoubleRefModifier( t->GetSingleRef() ) : SingleDoubleRefModifier( t->GetDoubleRef() )); ComplRefData& rRef = rMod.Ref(); @@ -1315,7 +1315,7 @@ void ScFormulaCell::UpdateGrow( const Sc t->CalcAbsIfRel( aPos ); BOOL bMod; { // own scope for SingleDoubleRefModifier dtor if SingleRef - SingleDoubleRefModifier& rMod = (t->GetType() == svSingleRef ? + const SingleDoubleRefModifier& rMod = (t->GetType() == svSingleRef ? SingleDoubleRefModifier( t->GetSingleRef() ) : SingleDoubleRefModifier( t->GetDoubleRef() )); ComplRefData& rRef = rMod.Ref(); --- sc/source/core/tool/compiler.cxx 2003-03-10 19:56:59.000000000 +0000 +++ sc/source/core/tool/compiler.cxx 2003-03-10 19:57:38.000000000 +0000 @@ -2895,7 +2895,7 @@ BOOL ScCompiler::UpdateNameReference(Upd for( ScToken* t = pArr->GetNextReference(); t; t = pArr->GetNextReference() ) { - SingleDoubleRefModifier& rMod = (t->GetType() == svSingleRef ? + const SingleDoubleRefModifier& rMod = (t->GetType() == svSingleRef ? SingleDoubleRefModifier( t->GetSingleRef() ) : SingleDoubleRefModifier( t->GetDoubleRef() )); ComplRefData& rRef = rMod.Ref(); @@ -2935,7 +2935,7 @@ void ScCompiler::UpdateSharedFormulaRefe // Absolute references have been already adjusted in the named // shared formula itself prior to breaking the shared formula // and calling this function. Don't readjust them again. - SingleDoubleRefModifier& rMod = (t->GetType() == svSingleRef ? + const SingleDoubleRefModifier& rMod = (t->GetType() == svSingleRef ? SingleDoubleRefModifier( t->GetSingleRef() ) : SingleDoubleRefModifier( t->GetDoubleRef() )); ComplRefData& rRef = rMod.Ref(); --- sc/source/core/tool/rangenam.cxx 2003-03-10 19:59:21.000000000 +0000 +++ sc/source/core/tool/rangenam.cxx 2003-03-10 19:59:39.000000000 +0000 @@ -394,7 +394,7 @@ void ScRangeData::UpdateTranspose( const { if( t->GetType() != svIndex ) { - SingleDoubleRefModifier& rMod = (t->GetType() == svSingleRef ? + const SingleDoubleRefModifier& rMod = (t->GetType() == svSingleRef ? SingleDoubleRefModifier( t->GetSingleRef() ) : SingleDoubleRefModifier( t->GetDoubleRef() )); ComplRefData& rRef = rMod.Ref(); @@ -424,7 +424,7 @@ void ScRangeData::UpdateGrow( const ScRa { if( t->GetType() != svIndex ) { - SingleDoubleRefModifier& rMod = (t->GetType() == svSingleRef ? + const SingleDoubleRefModifier& rMod = (t->GetType() == svSingleRef ? SingleDoubleRefModifier( t->GetSingleRef() ) : SingleDoubleRefModifier( t->GetDoubleRef() )); ComplRefData& rRef = rMod.Ref(); --- extensions/source/installation/office/instchk/instchk.cxx 2003-03-10 21:12:31.000000000 +0000 +++ extensions/source/installation/office/instchk/instchk.cxx 2003-03-10 21:12:53.000000000 +0000 @@ -430,7 +430,7 @@ extern "C" reinterpret_cast< XRegistryKey* >( pRegistryKey )->createKey( OUString::createFromAscii( "/" INSTCHK_IMPLEMENTATION_NAME "/UNO/SERVICES" ) ) ); - Sequence< OUString >& rSNL = Instchk_getSupportedServiceNames( ); + const Sequence< OUString >& rSNL = Instchk_getSupportedServiceNames( ); const OUString* pArray = rSNL.getConstArray( ); for ( sal_Int32 i = rSNL.getLength( ); i--; /* empty */ ) xNewRegKey->createKey( pArray[i] );