[Libreoffice-commits] .: 2 commits - chart2/source dbaccess/source i18npool/source jvmfwk/plugins scripting/source sdext/source sd/source sfx2/source svtools/source svx/source unotools/source

Takeshi Abe tabe at kemper.freedesktop.org
Thu May 17 06:43:20 PDT 2012


 chart2/source/tools/ObjectIdentifier.cxx                |    1 -
 dbaccess/source/filter/xml/xmlExport.cxx                |    1 -
 dbaccess/source/ui/app/AppControllerDnD.cxx             |    2 +-
 dbaccess/source/ui/dlg/ConnectionHelper.cxx             |    2 --
 dbaccess/source/ui/dlg/DbAdminImpl.cxx                  |    9 ++++-----
 dbaccess/source/ui/dlg/UserAdmin.cxx                    |    5 ++---
 dbaccess/source/ui/dlg/paramdialog.cxx                  |    1 -
 dbaccess/source/ui/querydesign/QueryDesignView.cxx      |    1 -
 dbaccess/source/ui/tabledesign/TableController.cxx      |    1 -
 i18npool/source/indexentry/indexentrysupplier_asian.cxx |    1 -
 jvmfwk/plugins/sunmajor/pluginlib/gnujre.cxx            |    1 -
 jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx     |    1 -
 jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx        |    1 -
 scripting/source/provider/MasterScriptProvider.cxx      |    1 -
 sd/source/filter/html/buttonset.cxx                     |    1 -
 sd/source/ui/animations/CustomAnimationPane.cxx         |    2 --
 sdext/source/minimizer/graphiccollector.cxx             |    1 -
 sfx2/source/bastyp/fltfnc.cxx                           |    1 -
 sfx2/source/notify/eventsupplier.cxx                    |    1 -
 svtools/source/filter/filter.cxx                        |    1 -
 svtools/source/java/javainteractionhandler.cxx          |    1 -
 svx/source/dialog/docrecovery.cxx                       |    2 --
 svx/source/form/fmdocumentclassification.cxx            |    1 -
 svx/source/form/navigatortreemodel.cxx                  |    1 -
 svx/source/gengal/gengal.cxx                            |    1 -
 svx/source/tbxctrls/fontworkgallery.cxx                 |    2 --
 svx/source/xml/xmleohlp.cxx                             |    1 -
 unotools/source/config/configitem.cxx                   |    1 -
 unotools/source/config/pathoptions.cxx                  |    1 -
 29 files changed, 7 insertions(+), 39 deletions(-)

New commits:
commit 2d67f4d3ae932a272dbaabf160e899af3e2a8694
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Thu May 17 22:39:12 2012 +0900

    catch by const reference
    
    Change-Id: I80a26483c4ecd099a1cfe76bdac1e97b947ef104

diff --git a/dbaccess/source/ui/app/AppControllerDnD.cxx b/dbaccess/source/ui/app/AppControllerDnD.cxx
index 3964aaf..696921f 100644
--- a/dbaccess/source/ui/app/AppControllerDnD.cxx
+++ b/dbaccess/source/ui/app/AppControllerDnD.cxx
@@ -283,7 +283,7 @@ void OApplicationController::deleteObjects( ElementType _eType, const ::std::vec
                 {
                     showError( SQLExceptionInfo( ::cppu::getCaughtException() ) );
                 }
-                catch(WrappedTargetException& e)
+                catch(const WrappedTargetException& e)
                 {
                     SQLException aSql;
                     if ( e.TargetException >>= aSql )
diff --git a/dbaccess/source/ui/dlg/DbAdminImpl.cxx b/dbaccess/source/ui/dlg/DbAdminImpl.cxx
index fd331c7..e7a876f 100644
--- a/dbaccess/source/ui/dlg/DbAdminImpl.cxx
+++ b/dbaccess/source/ui/dlg/DbAdminImpl.cxx
@@ -386,9 +386,9 @@ void ODbDataSourceAdministrationHelper::clearPassword()
             aRet.first = getDriver()->connect(getConnectionURL(), aConnectionParams);
             aRet.second = sal_True;
         }
-        catch (SQLContext& e) { aErrorInfo = SQLExceptionInfo(e); }
-        catch (SQLWarning& e) { aErrorInfo = SQLExceptionInfo(e); }
-        catch (SQLException& e) { aErrorInfo = SQLExceptionInfo(e); }
+        catch (const SQLContext& e) { aErrorInfo = SQLExceptionInfo(e); }
+        catch (const SQLWarning& e) { aErrorInfo = SQLExceptionInfo(e); }
+        catch (const SQLException& e) { aErrorInfo = SQLExceptionInfo(e); }
 
         showError(aErrorInfo,m_pParent,getORB());
     }
@@ -415,7 +415,7 @@ Reference< XDriver > ODbDataSourceAdministrationHelper::getDriver(const ::rtl::O
         xDriverManager = Reference< XDriverAccess >(getORB()->createInstance(SERVICE_SDBC_CONNECTIONPOOL), UNO_QUERY);
         OSL_ENSURE(xDriverManager.is(), "ODbDataSourceAdministrationHelper::getDriver: could not instantiate the driver manager, or it does not provide the necessary interface!");
     }
-    catch (Exception& e)
+    catch (const Exception& e)
     {
         // wrap the exception into an SQLException
         SQLException aSQLWrapper(e.Message, getORB(), ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("S1000")), 0, Any());
diff --git a/dbaccess/source/ui/dlg/UserAdmin.cxx b/dbaccess/source/ui/dlg/UserAdmin.cxx
index 17f927b..9fb27f8 100644
--- a/dbaccess/source/ui/dlg/UserAdmin.cxx
+++ b/dbaccess/source/ui/dlg/UserAdmin.cxx
@@ -277,7 +277,7 @@ IMPL_LINK( OUserAdmin, UserHdl, PushButton *, pButton )
         }
         FillUserNames();
     }
-    catch(SQLException& e)
+    catch(const SQLException& e)
     {
         ::dbaui::showError(::dbtools::SQLExceptionInfo(e),this,m_xORB);
         return 0;
@@ -340,7 +340,7 @@ void OUserAdmin::implInitControls(const SfxItemSet& _rSet, sal_Bool _bSaveValue)
         }
         FillUserNames();
     }
-    catch(SQLException& e)
+    catch(const SQLException& e)
     {
         ::dbaui::showError(::dbtools::SQLExceptionInfo(e),this,m_xORB);
     }
commit 359318b47f8b5f0caab4d36212015bb6b8bd7d3f
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date:   Thu May 17 22:36:29 2012 +0900

    removed unused const rtl::OUString
    
    Change-Id: I7c3409ac39e690fcf2f7e4085bf6857e6bd182fb

diff --git a/chart2/source/tools/ObjectIdentifier.cxx b/chart2/source/tools/ObjectIdentifier.cxx
index 39a0135..b394da1 100644
--- a/chart2/source/tools/ObjectIdentifier.cxx
+++ b/chart2/source/tools/ObjectIdentifier.cxx
@@ -634,7 +634,6 @@ bool ObjectIdentifier::parsePieSegmentDragParameterString(
         , awt::Point& rMinimumPosition
         , awt::Point& rMaximumPosition )
 {
-    OUString aValue;
     sal_Int32 nCharacterIndex = 0;
 
     OUString aValueString( rDragParameterString.getToken( 0, ',', nCharacterIndex ) );
diff --git a/dbaccess/source/filter/xml/xmlExport.cxx b/dbaccess/source/filter/xml/xmlExport.cxx
index ca93c90..3fa25bf 100644
--- a/dbaccess/source/filter/xml/xmlExport.cxx
+++ b/dbaccess/source/filter/xml/xmlExport.cxx
@@ -673,7 +673,6 @@ template< typename T > void ODBExport::exportDataSourceSettingsSequence(
     ::std::vector< TypedPropertyValue >::iterator const & in)
 {
     OSequenceIterator< T > i( in->Value );
-    ::rtl::OUString sCurrent;
     while (i.hasMoreElements())
     {
         SvXMLElementExport aDataValue(*this,XML_NAMESPACE_DB, XML_DATA_SOURCE_SETTING_VALUE, sal_True, sal_False);
diff --git a/dbaccess/source/ui/dlg/ConnectionHelper.cxx b/dbaccess/source/ui/dlg/ConnectionHelper.cxx
index cdc5f97..7fe55e7 100644
--- a/dbaccess/source/ui/dlg/ConnectionHelper.cxx
+++ b/dbaccess/source/ui/dlg/ConnectionHelper.cxx
@@ -580,8 +580,6 @@ DBG_NAME(OConnectionHelper)
 
     sal_Bool OConnectionHelper::createDirectoryDeep(const String& _rPathURL)
     {
-        ::rtl::OUString sPath(_rPathURL);
-
         // get an URL object analyzing the URL for us ...
         INetURLObject aParser;
         aParser.SetURL(_rPathURL);
diff --git a/dbaccess/source/ui/dlg/DbAdminImpl.cxx b/dbaccess/source/ui/dlg/DbAdminImpl.cxx
index 80a92a2..fd331c7 100644
--- a/dbaccess/source/ui/dlg/DbAdminImpl.cxx
+++ b/dbaccess/source/ui/dlg/DbAdminImpl.cxx
@@ -598,7 +598,6 @@ DECLARE_STL_SET( PropertyValue, PropertyValueLess, PropertyValueSet);
 //........................................................................
 void ODbDataSourceAdministrationHelper::translateProperties(const Reference< XPropertySet >& _rxSource, SfxItemSet& _rDest)
 {
-    ::rtl::OUString sNewConnectURL, sName, sUid, sPwd;
     Sequence< ::rtl::OUString > aTableFitler;
 
     if (_rxSource.is())
diff --git a/dbaccess/source/ui/dlg/UserAdmin.cxx b/dbaccess/source/ui/dlg/UserAdmin.cxx
index 520b5cf..17f927b 100644
--- a/dbaccess/source/ui/dlg/UserAdmin.cxx
+++ b/dbaccess/source/ui/dlg/UserAdmin.cxx
@@ -185,7 +185,6 @@ void OUserAdmin::FillUserNames()
                 m_aUserNames = m_xUsers->getElementNames();
                 const ::rtl::OUString* pBegin = m_aUserNames.getConstArray();
                 const ::rtl::OUString* pEnd   = pBegin + m_aUserNames.getLength();
-                ::rtl::OUString sUserName = m_UserName;
                 for(;pBegin != pEnd;++pBegin)
                     m_LB_USER.InsertEntry(*pBegin);
 
diff --git a/dbaccess/source/ui/dlg/paramdialog.cxx b/dbaccess/source/ui/dlg/paramdialog.cxx
index 9e93332..d580349 100644
--- a/dbaccess/source/ui/dlg/paramdialog.cxx
+++ b/dbaccess/source/ui/dlg/paramdialog.cxx
@@ -270,7 +270,6 @@ DBG_NAME(OParameterDialog)
                 // write the parameters
                 try
                 {
-                    ::rtl::OUString sError;
                     PropertyValue* pValues = m_aFinalValues.getArray();
                     for (sal_Int32 i = 0, nCount = m_xParams->getCount(); i<nCount; ++i, ++pValues)
                     {
diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
index d6a2872..6b91252 100644
--- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx
+++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
@@ -2010,7 +2010,6 @@ namespace
                 }
 
                 ::rtl::OUString sComposedName;
-                ::rtl::OUString aQualifierName;
                 ::rtl::OUString sAlias;
 
                 OQueryTableView* pTableView = static_cast<OQueryTableView*>(_pView->getTableView());
diff --git a/dbaccess/source/ui/tabledesign/TableController.cxx b/dbaccess/source/ui/tabledesign/TableController.cxx
index 210e09d..f4e7dda 100644
--- a/dbaccess/source/ui/tabledesign/TableController.cxx
+++ b/dbaccess/source/ui/tabledesign/TableController.cxx
@@ -1411,7 +1411,6 @@ void OTableController::dropPrimaryKey()
 // -----------------------------------------------------------------------------
 void OTableController::assignTable()
 {
-    ::rtl::OUString sComposedName;
     // get the table
     if(!m_sName.isEmpty())
     {
diff --git a/i18npool/source/indexentry/indexentrysupplier_asian.cxx b/i18npool/source/indexentry/indexentrysupplier_asian.cxx
index f661fbb..2e9ca93 100644
--- a/i18npool/source/indexentry/indexentrysupplier_asian.cxx
+++ b/i18npool/source/indexentry/indexentrysupplier_asian.cxx
@@ -190,7 +190,6 @@ IndexEntrySupplier_asian::getPhoneticCandidate( const OUString& rIndexEntry,
         OUStringBuffer candidate;
         sal_Int16 max_index;
         sal_uInt16** idx=func(&max_index);
-        OUString aIndexEntry=rIndexEntry;
         for (sal_Int32 i=0,j=0; i < rIndexEntry.getLength(); i=j) {
             sal_uInt32 ch = rIndexEntry.iterateCodePoints(&j, 1);
             if (((sal_Int16)(ch>>8)) <= max_index) {
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/gnujre.cxx b/jvmfwk/plugins/sunmajor/pluginlib/gnujre.cxx
index 628461c..f7e403d 100644
--- a/jvmfwk/plugins/sunmajor/pluginlib/gnujre.cxx
+++ b/jvmfwk/plugins/sunmajor/pluginlib/gnujre.cxx
@@ -99,7 +99,6 @@ bool GnuInfo::initialize(vector<pair<OUString, OUString> > props)
     //get java.vendor, java.version, java.home,
     //javax.accessibility.assistive_technologies from system properties
 
-    OUString sVendor;
     OUString sJavaLibraryPath;
     typedef vector<pair<OUString, OUString> >::const_iterator it_prop;
     OUString sVendorProperty(
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx b/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
index ffa6b55..49ec598 100644
--- a/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
+++ b/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
@@ -732,7 +732,6 @@ javaPluginError jfw_plugin_startJavaVirtualMachine(
 
     if(err != 0)
     {
-        rtl::OUString message;
         if( err < 0)
         {
             fprintf(stderr,"[Java framework] sunjavaplugin" SAL_DLLEXTENSION
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx b/jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx
index 60196bf..a9f99c1 100644
--- a/jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx
+++ b/jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx
@@ -82,7 +82,6 @@ bool VendorBase::initialize(vector<pair<OUString, OUString> > props)
     //get java.vendor, java.version, java.home,
     //javax.accessibility.assistive_technologies from system properties
 
-    OUString sVendor;
     typedef vector<pair<OUString, OUString> >::const_iterator it_prop;
     OUString sVendorProperty(
         RTL_CONSTASCII_USTRINGPARAM("java.vendor"));
diff --git a/scripting/source/provider/MasterScriptProvider.cxx b/scripting/source/provider/MasterScriptProvider.cxx
index 54395d7..43d3114 100644
--- a/scripting/source/provider/MasterScriptProvider.cxx
+++ b/scripting/source/provider/MasterScriptProvider.cxx
@@ -230,7 +230,6 @@ void MasterScriptProvider::createPkgProvider()
 {
     try
     {
-        ::rtl::OUString loc = m_sCtxString;
         Any location;
         ::rtl::OUString sPkgCtx =  m_sCtxString.concat( OUSTR(":uno_packages") );
         location <<= sPkgCtx;
diff --git a/sd/source/filter/html/buttonset.cxx b/sd/source/filter/html/buttonset.cxx
index 359eaff..8d89d1f 100644
--- a/sd/source/filter/html/buttonset.cxx
+++ b/sd/source/filter/html/buttonset.cxx
@@ -173,7 +173,6 @@ ButtonSetImpl::ButtonSetImpl()
 
 void ButtonSetImpl::scanForButtonSets( const OUString& rPath )
 {
-    OUString aSystemPath;
     osl::Directory aDirectory( rPath );
     if( aDirectory.open() == osl::FileBase::E_None )
     {
diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx
index 498185f..bdf039d 100644
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -780,8 +780,6 @@ void CustomAnimationPane::updateControls()
             UStringList aProperties( pDescriptor->getProperties() );
             if( aProperties.size() >= 1 )
             {
-                OUString aProperty( aProperties.front() );
-
                 mnPropertyType = getPropertyType( aProperties.front() );
 
                 mpFTProperty->SetText( getPropertyName( mnPropertyType )  );
diff --git a/sdext/source/minimizer/graphiccollector.cxx b/sdext/source/minimizer/graphiccollector.cxx
index 3832af5..58a73d4 100644
--- a/sdext/source/minimizer/graphiccollector.cxx
+++ b/sdext/source/minimizer/graphiccollector.cxx
@@ -146,7 +146,6 @@ void ImpAddFillBitmapEntity( const Reference< XComponentContext >& rxMSF, const
         {
             if ( eFillStyle == FillStyle_BITMAP )
             {
-                rtl::OUString aFillBitmapURL;
                 Reference< XBitmap > xFillBitmap;
                 if ( rxPropertySet->getPropertyValue( TKGet( TK_FillBitmap ) ) >>= xFillBitmap )
                 {
diff --git a/sfx2/source/bastyp/fltfnc.cxx b/sfx2/source/bastyp/fltfnc.cxx
index 818c157..3bb6497 100644
--- a/sfx2/source/bastyp/fltfnc.cxx
+++ b/sfx2/source/bastyp/fltfnc.cxx
@@ -621,7 +621,6 @@ const SfxFilter* SfxFilterMatcher::GetFilterForProps( const com::sun::star::uno:
                 if ( !m_rImpl.aName.isEmpty() )
                 {
                     // if this is not the global FilterMatcher: check if filter matches the document type
-                    ::rtl::OUString aService;
                     if ( pFilter->GetServiceName() != String(m_rImpl.aName) )
                     {
                         // preferred filter belongs to another document type; now we must search the filter
diff --git a/sfx2/source/notify/eventsupplier.cxx b/sfx2/source/notify/eventsupplier.cxx
index 8c2ac45..645f3d3 100644
--- a/sfx2/source/notify/eventsupplier.cxx
+++ b/sfx2/source/notify/eventsupplier.cxx
@@ -198,7 +198,6 @@ static void Execute( ANY& aEventData, const css::document::DocumentEvent& aTrigg
     SEQUENCE < PROPERTYVALUE > aProperties;
     if ( aEventData >>= aProperties )
     {
-        rtl::OUString aPrefix = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( MACRO_PRFIX ) );
         rtl::OUString aType;
         rtl::OUString aScript;
         rtl::OUString aLibrary;
diff --git a/svtools/source/filter/filter.cxx b/svtools/source/filter/filter.cxx
index 3c1c1a5..0d7f1e1 100644
--- a/svtools/source/filter/filter.cxx
+++ b/svtools/source/filter/filter.cxx
@@ -123,7 +123,6 @@ sal_Bool ImplDirEntryHelper::Exists( const INetURLObject& rObj )
 
     try
     {
-        ::rtl::OUString aTitle;
         ::ucbhelper::Content    aCnt( rObj.GetMainURL( INetURLObject::NO_DECODE ),
                               ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XCommandEnvironment >() );
 
diff --git a/svtools/source/java/javainteractionhandler.cxx b/svtools/source/java/javainteractionhandler.cxx
index d4309c9..9569ff2 100644
--- a/svtools/source/java/javainteractionhandler.cxx
+++ b/svtools/source/java/javainteractionhandler.cxx
@@ -125,7 +125,6 @@ void SAL_CALL JavaInteractionHandler::handle( const Reference< XInteractionReque
     // Try to recover the Exception type in the any and
     // react accordingly.
     sal_uInt16      nResult = RET_CANCEL;
-    ::rtl::OUString    aParameter;
 
     if ( anyExc >>= e1 )
     {
diff --git a/svx/source/dialog/docrecovery.cxx b/svx/source/dialog/docrecovery.cxx
index bb28df5..7bae88b 100644
--- a/svx/source/dialog/docrecovery.cxx
+++ b/svx/source/dialog/docrecovery.cxx
@@ -944,8 +944,6 @@ void RecovDocListEntry::Paint(const Point&       aPos   ,
 
     if (pTxt)
     {
-        ::rtl::OUString sT1(*pTxt);
-
         Point aPnt(aPos);
         aPnt.X() += pList->m_aGreenCheckImg.GetSizePixel().Width();
         aPnt.X() += 10;
diff --git a/svx/source/form/fmdocumentclassification.cxx b/svx/source/form/fmdocumentclassification.cxx
index 662cf46..ea45b81 100644
--- a/svx/source/form/fmdocumentclassification.cxx
+++ b/svx/source/form/fmdocumentclassification.cxx
@@ -131,7 +131,6 @@ namespace svxform
         try
         {
             // first, check whether the document has a ModuleIdentifier which we know
-            ::rtl::OUString sModuleIdentifier;
             Reference< XModule > xModule( _rxDocumentModel, UNO_QUERY );
             if ( xModule.is() )
                 eType = getDocumentTypeForModuleIdentifier( xModule->getIdentifier() );
diff --git a/svx/source/form/navigatortreemodel.cxx b/svx/source/form/navigatortreemodel.cxx
index 35404a0..1d7ca0f 100644
--- a/svx/source/form/navigatortreemodel.cxx
+++ b/svx/source/form/navigatortreemodel.cxx
@@ -581,7 +581,6 @@ namespace svxform
             Reference< XIndexContainer >  xComponents( GetFormComponents(pFormData));
             if( !xComponents.is() ) return;
 
-            ::rtl::OUString aControlName;
             Reference< XInterface >  xInterface;
             Reference< XPropertySet >  xSet;
             FmControlData* pNewControlData;
diff --git a/svx/source/gengal/gengal.cxx b/svx/source/gengal/gengal.cxx
index 00c5567..f91b42e 100644
--- a/svx/source/gengal/gengal.cxx
+++ b/svx/source/gengal/gengal.cxx
@@ -223,7 +223,6 @@ void GalApp::Init()
 
 void GalApp::InitUCB()
 {
-    rtl::OUString aEmpty;
     Sequence< Any > aArgs(2);
     aArgs[0]
         <<= rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(UCB_CONFIGURATION_KEY1_LOCAL));
diff --git a/svx/source/tbxctrls/fontworkgallery.cxx b/svx/source/tbxctrls/fontworkgallery.cxx
index 10e1662..955090b 100644
--- a/svx/source/tbxctrls/fontworkgallery.cxx
+++ b/svx/source/tbxctrls/fontworkgallery.cxx
@@ -623,8 +623,6 @@ IMPL_LINK_NOARG(FontWorkCharacterSpacingWindow, SelectHdl)
     }
     else if ( nSelection == 6 ) // KernCharacterPairs
     {
-        rtl::OUString   aCommand( RTL_CONSTASCII_USTRINGPARAM( ".uno:FontworkKernCharacterPairs" ));
-
         Sequence< PropertyValue > aArgs( 1 );
         aArgs[0].Name = msFontworkKernCharacterPairs.copy(5);
         aArgs[0].Value <<= (sal_Bool) sal_True;
diff --git a/svx/source/xml/xmleohlp.cxx b/svx/source/xml/xmleohlp.cxx
index cf0a0a5..6754225 100644
--- a/svx/source/xml/xmleohlp.cxx
+++ b/svx/source/xml/xmleohlp.cxx
@@ -733,7 +733,6 @@ Any SAL_CALL SvXMLEmbeddedObjectHelper::getByName(
                                aEmbDescr[0].Value <<= (sal_Bool)(!bOasisFormat);
                             if ( !bOasisFormat )
                             {
-                                ::rtl::OUString aMimeType;
                                 uno::Reference< io::XInputStream > xGrInStream = ImplGetReplacementImage( xObj );
                                 if ( xGrInStream.is() )
                                 {
diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx
index 3aaeaf6..9c6f01e 100644
--- a/unotools/source/config/configitem.cxx
+++ b/unotools/source/config/configitem.cxx
@@ -1114,7 +1114,6 @@ sal_Bool ConfigItem::ReplaceSetProperties(
 
 sal_Bool ConfigItem::getUniqueSetElementName( const ::rtl::OUString& _rSetNode, ::rtl::OUString& _rName)
 {
-    ::rtl::OUString sNewElementName;
     Reference<XHierarchicalNameAccess> xHierarchyAccess = GetTree();
     sal_Bool bRet = sal_False;
     if(xHierarchyAccess.is())
diff --git a/unotools/source/config/pathoptions.cxx b/unotools/source/config/pathoptions.cxx
index 4435830..c18d004 100644
--- a/unotools/source/config/pathoptions.cxx
+++ b/unotools/source/config/pathoptions.cxx
@@ -372,7 +372,6 @@ OUString SvtPathOptions_Impl::SubstVar( const OUString& rVar ) const
     while ( ( nPosition != STRPOS_NOTFOUND ) && ( nLength > 0 ) )
     {
         // YES; Get the next variable for replace.
-        OUString aReplacement;
         OUString aSubString = aWorkText.copy( nPosition, nLength );
         aSubString = aSubString.toAsciiLowerCase();
 


More information about the Libreoffice-commits mailing list