[Libreoffice-commits] core.git: bridges/source connectivity/source

2021-05-03 Thread Stephan Bergmann (via logerrit)
 bridges/source/cpp_uno/gcc3_linux_aarch64/abi.hxx|2 +-
 connectivity/source/drivers/macab/MacabResultSet.cxx |4 ++--
 connectivity/source/drivers/macab/MacabResultSet.hxx |4 ++--
 connectivity/source/drivers/macab/MacabResultSetMetaData.hxx |2 +-
 connectivity/source/drivers/macab/MacabStatement.cxx |4 ++--
 connectivity/source/drivers/macab/MacabStatement.hxx |4 ++--
 6 files changed, 10 insertions(+), 10 deletions(-)

New commits:
commit 0d913b281d3b59b7411b2bd0d348be2d15539569
Author: Stephan Bergmann 
AuthorDate: Mon May 3 17:13:31 2021 +0200
Commit: Stephan Bergmann 
CommitDate: Tue May 4 07:44:27 2021 +0200

loplugin:noexcept (macOS)

Change-Id: Ib8951e9590d70ffecf8fd6af3070ef9c6d4ae151
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115044
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann 

diff --git a/bridges/source/cpp_uno/gcc3_linux_aarch64/abi.hxx 
b/bridges/source/cpp_uno/gcc3_linux_aarch64/abi.hxx
index d83ecb2ae91f..10495582dcc0 100644
--- a/bridges/source/cpp_uno/gcc3_linux_aarch64/abi.hxx
+++ b/bridges/source/cpp_uno/gcc3_linux_aarch64/abi.hxx
@@ -115,7 +115,7 @@ struct __cxa_eh_globals {
 
 #if !HAVE_CXXABI_H_CXA_GET_GLOBALS
 namespace __cxxabiv1 {
-extern "C" __cxa_eh_globals * __cxa_get_globals() throw();
+extern "C" __cxa_eh_globals * __cxa_get_globals() noexcept;
 }
 #endif
 
diff --git a/connectivity/source/drivers/macab/MacabResultSet.cxx 
b/connectivity/source/drivers/macab/MacabResultSet.cxx
index 090620af49d0..ecb4ea79e417 100644
--- a/connectivity/source/drivers/macab/MacabResultSet.cxx
+++ b/connectivity/source/drivers/macab/MacabResultSet.cxx
@@ -157,12 +157,12 @@ Any SAL_CALL MacabResultSet::queryInterface(const Type & 
rType)
 return aRet;
 }
 
-void SAL_CALL MacabResultSet::acquire() throw()
+void SAL_CALL MacabResultSet::acquire() noexcept
 {
 MacabResultSet_BASE::acquire();
 }
 
-void SAL_CALL MacabResultSet::release() throw()
+void SAL_CALL MacabResultSet::release() noexcept
 {
 MacabResultSet_BASE::release();
 }
diff --git a/connectivity/source/drivers/macab/MacabResultSet.hxx 
b/connectivity/source/drivers/macab/MacabResultSet.hxx
index d0d8061f417c..306ef562d3b4 100644
--- a/connectivity/source/drivers/macab/MacabResultSet.hxx
+++ b/connectivity/source/drivers/macab/MacabResultSet.hxx
@@ -104,8 +104,8 @@ namespace connectivity::macab
 
 // XInterface
 virtual css::uno::Any SAL_CALL queryInterface( const 
css::uno::Type & rType ) override;
-virtual void SAL_CALL acquire() throw() override;
-virtual void SAL_CALL release() throw() override;
+virtual void SAL_CALL acquire() noexcept override;
+virtual void SAL_CALL release() noexcept override;
 
 // XTypeProvider
 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes(  ) 
override;
diff --git a/connectivity/source/drivers/macab/MacabResultSetMetaData.hxx 
b/connectivity/source/drivers/macab/MacabResultSetMetaData.hxx
index 6db5f240ac24..a7afdf4a094a 100644
--- a/connectivity/source/drivers/macab/MacabResultSetMetaData.hxx
+++ b/connectivity/source/drivers/macab/MacabResultSetMetaData.hxx
@@ -45,7 +45,7 @@ namespace connectivity::macab
 MacabResultSetMetaData(MacabConnection* _pConnection, OUString 
const & _sTableName);
 
 // avoid ambiguous cast error from the compiler
-operator css::uno::Reference< css::sdbc::XResultSetMetaData > () 
throw()
+operator css::uno::Reference< css::sdbc::XResultSetMetaData > () 
noexcept
 { return this; }
 
 /// @throws css::sdbc::SQLException
diff --git a/connectivity/source/drivers/macab/MacabStatement.cxx 
b/connectivity/source/drivers/macab/MacabStatement.cxx
index 450213f7cca5..1f317150d249 100644
--- a/connectivity/source/drivers/macab/MacabStatement.cxx
+++ b/connectivity/source/drivers/macab/MacabStatement.cxx
@@ -568,12 +568,12 @@ void 
MacabCommonStatement::getFastPropertyValue(Any&,sal_Int32 nHandle) const
 }
 }
 
-void SAL_CALL MacabCommonStatement::acquire() throw()
+void SAL_CALL MacabCommonStatement::acquire() noexcept
 {
 MacabCommonStatement_BASE::acquire();
 }
 
-void SAL_CALL MacabCommonStatement::release() throw()
+void SAL_CALL MacabCommonStatement::release() noexcept
 {
 MacabCommonStatement_BASE::release();
 }
diff --git a/connectivity/source/drivers/macab/MacabStatement.hxx 
b/connectivity/source/drivers/macab/MacabStatement.hxx
index 83142fc56618..6b0c53c234ad 100644
--- a/connectivity/source/drivers/macab/MacabStatement.hxx
+++ b/connectivity/source/drivers/macab/MacabStatement.hxx
@@ -106,8 +106,8 @@ namespace connectivity::macab
 using MacabCommonStatement_BASE::disposing;
 
 // XInterface
-virtual void SAL_CALL release() throw() override;
-virtual void SAL_CALL acquire() throw() override;
+virtual 

[Libreoffice-commits] core.git: bridges/source connectivity/source dbaccess/source embeddedobj/source filter/source io/source oox/source package/source sax/source sc/source sdext/source sd/source sfx2

2020-01-25 Thread Noel Grandin (via logerrit)
 bridges/source/jni_uno/jni_data.cxx|1 -
 connectivity/source/drivers/flat/ETable.cxx|1 -
 dbaccess/source/ui/misc/UITools.cxx|1 -
 dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx  |1 -
 embeddedobj/source/msole/olevisual.cxx |3 +--
 filter/source/config/cache/filterfactory.cxx   |2 --
 io/source/stm/omark.cxx|4 
 oox/source/export/shapes.cxx   |1 -
 oox/source/shape/ShapeContextHandler.cxx   |2 --
 package/source/manifest/ManifestImport.cxx |1 -
 sax/source/expatwrap/sax_expat.cxx |1 -
 sc/source/core/data/documen5.cxx   |1 -
 sc/source/filter/excel/excrecds.cxx|1 -
 sc/source/filter/excel/xeformula.cxx   |1 -
 sc/source/ui/view/dbfunc.cxx   |1 -
 sd/source/filter/html/htmlattr.cxx |2 --
 sd/source/filter/xml/sdxmlwrp.cxx  |1 -
 sd/source/ui/animations/SlideTransitionPane.cxx|1 -
 sd/source/ui/dlg/PhotoAlbumDialog.cxx  |1 -
 sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx |1 -
 sdext/source/presenter/PresenterNotesView.cxx  |9 -
 sdext/source/presenter/PresenterToolBar.cxx|1 -
 sfx2/source/dialog/versdlg.cxx |1 -
 sfx2/source/doc/doctemplates.cxx   |2 +-
 slideshow/source/engine/opengl/TransitionImpl.cxx  |2 +-
 slideshow/source/engine/slide/shapemanagerimpl.cxx |1 -
 svx/source/dialog/imapwnd.cxx  |2 --
 svx/source/dialog/rubydialog.cxx   |1 -
 svx/source/form/formcontroller.cxx |1 -
 svx/source/gallery2/galtheme.cxx   |1 -
 svx/source/gengal/gengal.cxx   |2 --
 svx/source/svdraw/svdoashp.cxx |1 -
 sw/source/core/access/accmap.cxx   |5 +
 sw/source/core/undo/unins.cxx  |2 --
 sw/source/filter/ww8/WW8TableInfo.cxx  |2 --
 sw/source/filter/xml/wrtxml.cxx|1 -
 ucb/source/ucp/cmis/cmis_content.cxx   |3 +--
 ucb/source/ucp/webdav-neon/webdavcontent.cxx   |1 -
 vcl/source/gdi/FileDefinitionWidgetDraw.cxx|2 --
 vcl/source/gdi/gdimtf.cxx  |3 ---
 vcl/source/gdi/salmisc.cxx |1 -
 vcl/source/treelist/iconviewimpl.cxx   |2 --
 vcl/source/window/brdwin.cxx   |1 -
 vcl/unx/generic/gdi/gdiimpl.cxx|   10 --
 44 files changed, 5 insertions(+), 80 deletions(-)

New commits:
commit 51b5b93092d6231615de470c62494c24e54828a1
Author: Noel Grandin 
AuthorDate: Sat Jan 25 17:49:47 2020 +0200
Commit: Noel Grandin 
CommitDate: Sun Jan 26 08:01:42 2020 +0100

remove some unused local vars

found by a more aggressive variant of loplugin:unusedvariables.

This is my first pass, committing the simplest and most obviously
unnecessary vars

Change-Id: I9676a6e39a101937097788548764506c93811c57
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87414
Tested-by: Jenkins
Reviewed-by: Noel Grandin 

diff --git a/bridges/source/jni_uno/jni_data.cxx 
b/bridges/source/jni_uno/jni_data.cxx
index daff48a48492..06e8467f7e7c 100644
--- a/bridges/source/jni_uno/jni_data.cxx
+++ b/bridges/source/jni_uno/jni_data.cxx
@@ -2339,7 +2339,6 @@ void Bridge::map_to_java(
 
 if (0 < nElements)
 {
-TypeDescr element_td( element_type );
 uno_Sequence * const * elements = 
reinterpret_cast(seq->elements);
 for ( sal_Int32 nPos = 0; nPos < nElements; ++nPos )
 {
diff --git a/connectivity/source/drivers/flat/ETable.cxx 
b/connectivity/source/drivers/flat/ETable.cxx
index 2da5d6ab8570..142d191be8c9 100644
--- a/connectivity/source/drivers/flat/ETable.cxx
+++ b/connectivity/source/drivers/flat/ETable.cxx
@@ -82,7 +82,6 @@ void OFlatTable::fillColumns(const css::lang::Locale& 
_aLocale)
 setRowPos(rowNum++, rowPos);
 
 // read first row
-QuotedTokenizedString aFirstLine;
 if(bRead)
 {
 bRead = readLine(, );
diff --git a/dbaccess/source/ui/misc/UITools.cxx 
b/dbaccess/source/ui/misc/UITools.cxx
index 257a10f3b8c0..0522d4ab834e 100644
--- a/dbaccess/source/ui/misc/UITools.cxx
+++ b/dbaccess/source/ui/misc/UITools.cxx
@@ -145,7 +145,6 @@ SQLExceptionInfo createConnection(  const OUString& 
_rsDataSourceName,
 catch(const Exception&)
 {
 }
-SQLExceptionInfo aInfo;
 
 return 

[Libreoffice-commits] core.git: bridges/source connectivity/source embedserv/source extensions/source scripting/source sfx2/inc sfx2/source stoc/source ucb/source

2015-01-04 Thread Caolán McNamara
 bridges/source/cpp_uno/gcc3_linux_x86-64/cpp2uno.cxx   |3 -
 bridges/source/cpp_uno/gcc3_linux_x86-64/rtti.cxx  |5 +
 connectivity/source/commontools/TSkipDeletedSet.cxx|1 
 connectivity/source/drivers/mork/MColumnAlias.hxx  |4 -
 connectivity/source/drivers/mork/MQueryHelper.hxx  |6 --
 connectivity/source/drivers/mozab/MColumnAlias.hxx |4 -
 connectivity/source/drivers/mozab/mozillasrc/MLdapAttributeMap.cxx |5 -
 connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.hxx  |4 -
 connectivity/source/drivers/postgresql/pq_connection.hxx   |7 +-
 connectivity/source/drivers/postgresql/pq_databasemetadata.cxx |2 
 connectivity/source/drivers/postgresql/pq_statics.hxx  |6 --
 connectivity/source/drivers/postgresql/pq_tools.hxx|2 
 connectivity/source/drivers/postgresql/pq_xcontainer.hxx   |8 +--
 connectivity/source/inc/TSkipDeletedSet.hxx|2 
 embedserv/source/inc/embeddoc.hxx  |6 +-
 extensions/source/bibliography/framectr.cxx|4 -
 extensions/source/ole/oleobjw.cxx  |8 +--
 extensions/source/ole/oleobjw.hxx  |6 +-
 extensions/source/ole/unoconversionutilities.hxx   |   26 
+-
 extensions/source/ole/unoobjw.cxx  |6 +-
 extensions/source/ole/unoobjw.hxx  |6 +-
 extensions/source/propctrlr/browserlistbox.hxx |2 
 extensions/source/propctrlr/eventhandler.cxx   |2 
 extensions/source/propctrlr/eventhandler.hxx   |2 
 extensions/source/propctrlr/pcrcommontypes.hxx |4 -
 extensions/source/propctrlr/propcontroller.hxx |   10 +--
 scripting/source/dlgprov/dlgevtatt.hxx |   11 +---
 scripting/source/provider/ActiveMSPList.hxx|   22 
+++-
 scripting/source/provider/BrowseNodeFactoryImpl.cxx|8 +--
 scripting/source/provider/ProviderCache.hxx|5 +
 scripting/source/stringresource/stringresource.hxx |6 +-
 scripting/source/vbaevents/eventhelper.cxx |6 +-
 sfx2/inc/pch/precompiled_sfx.hxx   |2 
 sfx2/source/appl/imagemgr.cxx  |4 -
 sfx2/source/appl/newhelp.cxx   |4 -
 sfx2/source/appl/workwin.cxx   |4 -
 sfx2/source/control/bindings.cxx   |4 -
 sfx2/source/doc/Metadatable.cxx|   18 
+++---
 sfx2/source/toolbox/imgmgr.cxx |7 +-
 sfx2/source/view/sfxbasecontroller.cxx |7 +-
 stoc/source/corereflection/base.hxx|6 +-
 stoc/source/corereflection/lrucache.hxx|4 -
 stoc/source/inspect/introspection.cxx  |6 +-
 stoc/source/invocation_adapterfactory/iafactory.cxx|   11 +---
 stoc/source/namingservice/namingservice.cxx|5 +
 stoc/source/security/file_policy.cxx   |6 +-
 stoc/source/security/lru_cache.h   |4 -
 stoc/source/servicemanager/servicemanager.cxx  |   13 ++---
 ucb/source/core/ucbstore.cxx   |   16 
--
 ucb/source/ucp/file/filnot.hxx |5 -
 ucb/source/ucp/file/filtask.hxx|7 +-
 ucb/source/ucp/file/shell.hxx  |   12 ++--
 ucb/source/ucp/hierarchy/hierarchyprovider.hxx |8 ---
 ucb/source/ucp/package/pkgprovider.cxx |   14 -
 ucb/source/ucp/webdav-neon/ContentProperties.hxx   |   11 
 ucb/source/ucp/webdav-neon/NeonSession.cxx |4 -
 ucb/source/ucp/webdav-neon/PropertyMap.hxx |4 -
 ucb/source/ucp/webdav/ContentProperties.hxx|   11 
 ucb/source/ucp/webdav/PropertyMap.hxx  |6 --
 ucb/source/ucp/webdav/webdavresponseparser.cxx |7 --
 60 files changed, 174 insertions(+), 235 deletions(-)

New commits:
commit ca8787a98171070c771dc167b43d5bdb98c52ce4
Author: Caolán McNamara caol...@redhat.com
Date:   Sun Jan 4 11:10:45 2015 +

boost::unordered_map-std::unordered_map

Change-Id: I5d458f43616edc395faa8c27edaddc7d515166db