[Libreoffice-commits] core.git: accessibility/inc basctl/source basic/source chart2/Library_chartcore.mk chart2/source comphelper/source compilerplugins/clang configmgr/source connectivity/source cui/source dbaccess/source desktop/source drawinglayer/source editeng/source extensions/source filter/Library_xmlfa.mk filter/source forms/source formula/source framework/inc framework/source hwpfilter/source idl/inc include/basic include/comphelper include/connectivity include/dbaccess include/drawinglayer include/editeng include/filter include/formula include/linguistic include/oox include/registry include/sax include/sfx2 include/sot include/store include/svl include/svtools sfx2/Library_sfx.mk sfx2/source sot/source store/source svl/source svtools/Library_svt.mk svtools/source svx/inc sw/inc
Noel Grandin
noel at peralex.com
Wed May 18 10:04:07 UTC 2016
accessibility/inc/accessibility/helper/accresmgr.hxx | 2
basctl/source/inc/baside3.hxx | 1
basctl/source/inc/docsignature.hxx | 2
basic/source/sbx/sbxbase.cxx | 13
chart2/Library_chartcore.mk | 1
chart2/source/controller/dialogs/tp_3D_SceneIllumination.hxx | 1
chart2/source/inc/LifeTime.hxx | 5
chart2/source/inc/ModifyListenerCallBack.hxx | 57 -
chart2/source/tools/ModifyListenerCallBack.cxx | 105 ---
chart2/source/view/axes/VAxisProperties.hxx | 2
chart2/source/view/charttypes/VSeriesPlotter.cxx | 8
chart2/source/view/inc/VSeriesPlotter.hxx | 2
comphelper/source/container/embeddedobjectcontainer.cxx | 6
comphelper/source/inc/comphelper_module.hxx | 12
compilerplugins/clang/constantparam.cxx | 11
compilerplugins/clang/unuseddefaultparams.cxx | 3
compilerplugins/clang/unusedfields.cxx | 8
compilerplugins/clang/unusedmethods.cxx | 33 -
configmgr/source/nodemap.hxx | 3
connectivity/source/drivers/mork/MQueryHelper.hxx | 1
connectivity/source/drivers/mozab/bootstrap/MNSINIParser.hxx | 8
connectivity/source/inc/RowFunctionParser.hxx | 4
connectivity/source/inc/TSortIndex.hxx | 3
connectivity/source/inc/file/fcode.hxx | 2
connectivity/source/inc/file/quotedstring.hxx | 1
connectivity/source/inc/java/math/BigDecimal.hxx | 2
connectivity/source/inc/java/sql/DriverPropertyInfo.hxx | 2
connectivity/source/inc/java/sql/SQLException.hxx | 1
connectivity/source/inc/java/util/Property.hxx | 2
cui/source/dialogs/SpellAttrib.hxx | 12
cui/source/inc/autocdlg.hxx | 7
cui/source/inc/cuihyperdlg.hxx | 1
cui/source/inc/insdlg.hxx | 13
cui/source/inc/macropg.hxx | 1
cui/source/inc/optdict.hxx | 2
cui/source/inc/scriptdlg.hxx | 2
cui/source/options/optinet2.cxx | 34 -
cui/source/options/optinet2.hxx | 13
cui/source/options/optjava.hxx | 3
dbaccess/source/core/api/RowSetRow.hxx | 1
dbaccess/source/core/api/datasettings.cxx | 15
dbaccess/source/core/inc/core_resource.hxx | 2
dbaccess/source/core/inc/datasettings.hxx | 2
dbaccess/source/core/recovery/subcomponents.hxx | 6
dbaccess/source/ext/macromigration/migrationerror.hxx | 6
dbaccess/source/filter/xml/xmlExport.hxx | 3
dbaccess/source/ui/dlg/TextConnectionHelper.hxx | 2
dbaccess/source/ui/dlg/dbfindex.hxx | 1
dbaccess/source/ui/dlg/detailpages.hxx | 7
dbaccess/source/ui/inc/SqlNameEdit.hxx | 10
dbaccess/source/ui/inc/TokenWriter.hxx | 6
dbaccess/source/ui/inc/defaultobjectnamecheck.hxx | 6
dbaccess/source/ui/inc/indexes.hxx | 3
dbaccess/source/ui/misc/UpdateHelperImpl.hxx | 49 -
desktop/source/deployment/manager/dp_commandenvironments.hxx | 2
drawinglayer/source/attribute/fillgraphicattribute.cxx | 5
drawinglayer/source/attribute/fontattribute.cxx | 5
drawinglayer/source/attribute/materialattribute3d.cxx | 5
drawinglayer/source/attribute/sdrlightattribute3d.cxx | 17
drawinglayer/source/attribute/sdrobjectattribute3d.cxx | 25
editeng/source/editeng/editdoc.hxx | 10
editeng/source/editeng/editundo.hxx | 3
editeng/source/editeng/impedit.hxx | 1
editeng/source/outliner/overflowingtxt.cxx | 6
extensions/source/abpilot/datasourcehandling.hxx | 3
extensions/source/propctrlr/pcrcommon.hxx | 1
extensions/source/propctrlr/unourl.hxx | 3
filter/Library_xmlfa.mk | 1
filter/source/flash/swfwriter.hxx | 1
filter/source/flash/swfwriter2.cxx | 12
filter/source/graphicfilter/icgm/cgmtypes.hxx | 8
filter/source/svg/gfxtypes.hxx | 12
filter/source/svg/svgfilter.hxx | 4
filter/source/svg/svgwriter.hxx | 3
filter/source/xmlfilteradaptor/streamwrap.cxx | 59 -
filter/source/xmlfilteradaptor/streamwrap.hxx | 58 -
forms/source/component/DatabaseForm.hxx | 4
forms/source/component/FormComponent.cxx | 12
forms/source/inc/FormComponent.hxx | 6
forms/source/inc/frm_resource.hxx | 2
forms/source/inc/property.hxx | 2
formula/source/core/api/token.cxx | 17
formula/source/core/inc/core_resource.hxx | 2
framework/inc/classes/filtercache.hxx | 92 ---
framework/inc/classes/filtercachedata.hxx | 330 -----------
framework/inc/classes/wildcard.hxx | 65 --
framework/inc/helper/mischelper.hxx | 27
framework/inc/queries.h | 301 ----------
framework/inc/uielement/itemcontainer.hxx | 1
framework/inc/uielement/statusindicatorinterfacewrapper.hxx | 2
framework/source/inc/loadenv/actionlockguard.hxx | 11
framework/source/services/sessionlistener.cxx | 1
hwpfilter/source/mzstring.h | 1
idl/inc/bastype.hxx | 1
idl/inc/lex.hxx | 14
include/basic/sbxcore.hxx | 1
include/basic/sbxvar.hxx | 14
include/comphelper/anycompare.hxx | 3
include/comphelper/componentmodule.hxx | 8
include/comphelper/embeddedobjectcontainer.hxx | 1
include/comphelper/interaction.hxx | 4
include/comphelper/servicedecl.hxx | 4
include/connectivity/FValue.hxx | 1
include/connectivity/TTableHelper.hxx | 1
include/connectivity/parameters.hxx | 6
include/dbaccess/genericcontroller.hxx | 1
include/drawinglayer/attribute/fillgraphicattribute.hxx | 1
include/drawinglayer/attribute/fontattribute.hxx | 3
include/drawinglayer/attribute/materialattribute3d.hxx | 3
include/drawinglayer/attribute/sdrlightattribute3d.hxx | 5
include/drawinglayer/attribute/sdrobjectattribute3d.hxx | 4
include/drawinglayer/primitive3d/baseprimitive3d.hxx | 1
include/drawinglayer/primitive3d/sdrextrudelathetools3d.hxx | 8
include/editeng/AccessibleParaManager.hxx | 5
include/editeng/overflowingtxt.hxx | 1
include/editeng/txtrange.hxx | 1
include/editeng/unoedhlp.hxx | 2
include/filter/msfilter/escherex.hxx | 1
include/filter/msfilter/msdffimp.hxx | 2
include/filter/msfilter/mstoolbar.hxx | 1
include/filter/msfilter/svdfppt.hxx | 1
include/formula/token.hxx | 16
include/linguistic/lngprophelp.hxx | 12
include/linguistic/spelldta.hxx | 4
include/oox/crypto/CryptTools.hxx | 2
include/oox/drawingml/drawingmltypes.hxx | 1
include/registry/reader.hxx | 5
include/sax/tools/documenthandleradapter.hxx | 6
include/sfx2/app.hxx | 1
include/sfx2/bindings.hxx | 1
include/sfx2/ctrlitem.hxx | 8
include/sfx2/dinfedt.hxx | 40 -
include/sfx2/dockwin.hxx | 4
include/sfx2/fcontnr.hxx | 12
include/sfx2/frmdescr.hxx | 28
include/sfx2/module.hxx | 1
include/sfx2/objface.hxx | 2
include/sfx2/objsh.hxx | 4
include/sfx2/sidebar/ControllerItem.hxx | 6
include/sfx2/tbxctrl.hxx | 47 -
include/sfx2/unoctitm.hxx | 1
include/sot/storage.hxx | 2
include/sot/storinfo.hxx | 1
include/store/store.hxx | 27
include/svl/ctypeitm.hxx | 1
include/svl/nranges.hxx | 2
include/svl/ondemand.hxx | 39 -
include/svl/ownlist.hxx | 1
include/svl/poolitem.hxx | 1
include/svl/rngitem.hxx | 2
include/svl/svdde.hxx | 11
include/svl/szitem.hxx | 1
include/svtools/ServerDetailsControls.hxx | 2
include/svtools/accessibilityoptions.hxx | 8
include/svtools/brwbox.hxx | 4
include/svtools/imap.hxx | 3
include/svtools/inettbc.hxx | 1
include/svtools/menuoptions.hxx | 3
include/svtools/stdmenu.hxx | 145 ----
include/svtools/table/tablesort.hxx | 5
include/svtools/transfer.hxx | 4
sfx2/Library_sfx.mk | 1
sfx2/source/control/bindings.cxx | 47 -
sfx2/source/control/ctrlitem.cxx | 20
sfx2/source/control/unoctitm.cxx | 8
sfx2/source/dialog/dinfdlg.cxx | 1
sfx2/source/dialog/dinfedt.cxx | 34 -
sfx2/source/dialog/dockwin.cxx | 46 -
sfx2/source/doc/frmdescr.cxx | 30 -
sfx2/source/sidebar/ControllerItem.cxx | 7
sot/source/sdstor/storage.cxx | 13
store/source/lockbyte.cxx | 4
svl/source/items/ctypeitm.cxx | 6
svl/source/items/nranges.cxx | 9
svl/source/items/rngitem.cxx | 12
svl/source/items/szitem.cxx | 5
svl/source/svdde/ddecli.cxx | 22
svtools/Library_svt.mk | 1
svtools/source/config/accessibilityoptions.cxx | 175 -----
svtools/source/config/menuoptions.cxx | 31 -
svtools/source/control/inettbc.cxx | 14
svtools/source/control/stdmenu.cxx | 219 -------
svtools/source/dialogs/ServerDetailsControls.cxx | 5
svx/inc/pch/precompiled_svx.hxx | 1
sw/inc/SwAppletImpl.hxx | 16
185 files changed, 60 insertions(+), 2857 deletions(-)
New commits:
commit 2c8fe2e737b84ecd3dbac36a4fe6bd061bbd3bae
Author: Noel Grandin <noel at peralex.com>
Date: Mon May 16 10:11:04 2016 +0200
update unusedmethods plugin to deal with constructors
and fix the operator< implementations in some of the other
plugins too.
Change-Id: Ie5631e0cdc8d2a994ad2af2533cdb558a6cfc035
Reviewed-on: https://gerrit.libreoffice.org/25057
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
diff --git a/accessibility/inc/accessibility/helper/accresmgr.hxx b/accessibility/inc/accessibility/helper/accresmgr.hxx
index 9e27881..fe8ae62 100644
--- a/accessibility/inc/accessibility/helper/accresmgr.hxx
+++ b/accessibility/inc/accessibility/helper/accresmgr.hxx
@@ -38,7 +38,7 @@ class TkResMgr
private:
// no instantiation allowed
- TkResMgr() { }
+ TkResMgr() = delete;
~TkResMgr() { }
// we'll instantiate one static member of the following class,
diff --git a/basctl/source/inc/baside3.hxx b/basctl/source/inc/baside3.hxx
index 4d6a1f1..a7cd558 100644
--- a/basctl/source/inc/baside3.hxx
+++ b/basctl/source/inc/baside3.hxx
@@ -81,7 +81,6 @@ protected:
public:
DialogWindow (DialogWindowLayout* pParent, ScriptDocument const& rDocument, const OUString& aLibName, const OUString& aName, css::uno::Reference<css::container::XNameContainer> const& xDialogModel);
- DialogWindow( DialogWindow* pCurView ); // never implemented
virtual void ExecuteCommand( SfxRequest& rReq ) override;
virtual void GetState( SfxItemSet& ) override;
diff --git a/basctl/source/inc/docsignature.hxx b/basctl/source/inc/docsignature.hxx
index 546b1fb..b5c49dd 100644
--- a/basctl/source/inc/docsignature.hxx
+++ b/basctl/source/inc/docsignature.hxx
@@ -63,7 +63,7 @@ namespace basctl
SignatureState getScriptingSignatureState() const;
private:
- DocumentSignature(); // not implemented
+ DocumentSignature() = delete;
private:
struct Impl;
diff --git a/basic/source/sbx/sbxbase.cxx b/basic/source/sbx/sbxbase.cxx
index 2e75329..3eb9e6f 100644
--- a/basic/source/sbx/sbxbase.cxx
+++ b/basic/source/sbx/sbxbase.cxx
@@ -242,19 +242,6 @@ SbxBase* SbxBase::Load( SvStream& rStrm )
return p;
}
-// Skip the Sbx-Object inside the stream
-void SbxBase::Skip( SvStream& rStrm )
-{
- sal_uInt16 nSbxId, nFlags, nVer;
- sal_uInt32 nCreator, nSize;
- rStrm.ReadUInt32( nCreator ).ReadUInt16( nSbxId ).ReadUInt16( nFlags ).ReadUInt16( nVer );
-
- sal_Size nStartPos = rStrm.Tell();
- rStrm.ReadUInt32( nSize );
-
- rStrm.Seek( nStartPos + nSize );
-}
-
bool SbxBase::Store( SvStream& rStrm )
{
if( ( nFlags & SbxFlagBits::DontStore ) == SbxFlagBits::NONE )
diff --git a/chart2/Library_chartcore.mk b/chart2/Library_chartcore.mk
index 99d3c33..7040ade 100644
--- a/chart2/Library_chartcore.mk
+++ b/chart2/Library_chartcore.mk
@@ -215,7 +215,6 @@ $(eval $(call gb_Library_add_exception_objects,chartcore,\
chart2/source/tools/LogarithmicRegressionCurveCalculator \
chart2/source/tools/MeanValueRegressionCurveCalculator \
chart2/source/tools/MediaDescriptorHelper \
- chart2/source/tools/ModifyListenerCallBack \
chart2/source/tools/ModifyListenerHelper \
chart2/source/tools/MovingAverageRegressionCurveCalculator \
chart2/source/tools/MutexContainer \
diff --git a/chart2/source/controller/dialogs/tp_3D_SceneIllumination.hxx b/chart2/source/controller/dialogs/tp_3D_SceneIllumination.hxx
index 900a1f6..7d8834a 100644
--- a/chart2/source/controller/dialogs/tp_3D_SceneIllumination.hxx
+++ b/chart2/source/controller/dialogs/tp_3D_SceneIllumination.hxx
@@ -19,7 +19,6 @@
#ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_TP_3D_SCENEILLUMINATION_HXX
#define INCLUDED_CHART2_SOURCE_CONTROLLER_DIALOGS_TP_3D_SCENEILLUMINATION_HXX
-#include "ModifyListenerCallBack.hxx"
#include "TimerTriggeredControllerLock.hxx"
#include <com/sun/star/beans/XPropertySet.hpp>
diff --git a/chart2/source/inc/LifeTime.hxx b/chart2/source/inc/LifeTime.hxx
index 6552d2a..e1e3ac6 100644
--- a/chart2/source/inc/LifeTime.hxx
+++ b/chart2/source/inc/LifeTime.hxx
@@ -211,11 +211,6 @@ protected:
T * m_pT;
public:
- NegativeGuard(T * pT) : m_pT(pT)
- {
- m_pT->release();
- }
-
NegativeGuard(T & t) : m_pT(&t)
{
m_pT->release();
diff --git a/chart2/source/inc/ModifyListenerCallBack.hxx b/chart2/source/inc/ModifyListenerCallBack.hxx
deleted file mode 100644
index 99c075a..0000000
--- a/chart2/source/inc/ModifyListenerCallBack.hxx
+++ /dev/null
@@ -1,57 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef INCLUDED_CHART2_SOURCE_INC_MODIFYLISTENERCALLBACK_HXX
-#define INCLUDED_CHART2_SOURCE_INC_MODIFYLISTENERCALLBACK_HXX
-
-#include <tools/link.hxx>
-#include <com/sun/star/util/XModifyBroadcaster.hpp>
-#include <com/sun/star/util/XModifyListener.hpp>
-#include "charttoolsdllapi.hxx"
-
-namespace chart {
-
-/** Use this class as a member if you want to listen on a XModifyBroadcaster
-without becoming a XModifyListener yourself
- */
-
-class ModifyListenerCallBack_impl;
-
-class OOO_DLLPUBLIC_CHARTTOOLS ModifyListenerCallBack
-{
-public:
- explicit ModifyListenerCallBack( const Link<void*,void>& rCallBack );
-
- virtual ~ModifyListenerCallBack();
-
- SAL_DLLPRIVATE void stopListening();
-
-private: //methods
- ModifyListenerCallBack( const ModifyListenerCallBack& ) = delete;
-
-private: //member
- ModifyListenerCallBack_impl* pModifyListener_impl;
- css::uno::Reference< css::util::XModifyListener > m_xModifyListener;
-};
-
-} // namespace chart
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/tools/ModifyListenerCallBack.cxx b/chart2/source/tools/ModifyListenerCallBack.cxx
deleted file mode 100644
index 0ac16b8..0000000
--- a/chart2/source/tools/ModifyListenerCallBack.cxx
+++ /dev/null
@@ -1,105 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include "ModifyListenerCallBack.hxx"
-#include "MutexContainer.hxx"
-#include <cppuhelper/compbase.hxx>
-
-using namespace ::com::sun::star;
-using ::com::sun::star::uno::Reference;
-
-namespace chart {
-
-typedef ::cppu::WeakComponentImplHelper< css::util::XModifyListener >
- ModifyListenerCallBack_Base;
-
-class ModifyListenerCallBack_impl
- : public ::chart::MutexContainer
- , public ModifyListenerCallBack_Base
-{
-public:
- explicit ModifyListenerCallBack_impl( const Link<void*,void>& rCallBack );
- virtual ~ModifyListenerCallBack_impl();
-
- void stopListening();
-
- //XModifyListener
- virtual void SAL_CALL modified( const lang::EventObject& aEvent ) throw (uno::RuntimeException, std::exception) override;
-
- //XEventListener
- virtual void SAL_CALL disposing( const lang::EventObject& Source ) throw (uno::RuntimeException, std::exception) override;
-
- using ::cppu::WeakComponentImplHelperBase::disposing;
-
-private:
- Link<void*,void> m_aLink;//will be called on modify
- Reference< util::XModifyBroadcaster > m_xBroadcaster;//broadcaster to listen at
-};
-
-ModifyListenerCallBack_impl::ModifyListenerCallBack_impl( const Link<void*,void>& rCallBack )
- : ModifyListenerCallBack_Base( m_aMutex )
- , m_aLink( rCallBack )
- , m_xBroadcaster(nullptr)
-{
-}
-
-ModifyListenerCallBack_impl::~ModifyListenerCallBack_impl()
-{
-}
-
-//XModifyListener
-void SAL_CALL ModifyListenerCallBack_impl::modified( const lang::EventObject& /*aEvent*/ ) throw (uno::RuntimeException, std::exception)
-{
- m_aLink.Call(nullptr);
-}
-
-//XEventListener
-void SAL_CALL ModifyListenerCallBack_impl::disposing( const lang::EventObject& /*Source*/ ) throw (uno::RuntimeException, std::exception)
-{
- m_xBroadcaster.clear();
-}
-
-void ModifyListenerCallBack_impl::stopListening()
-{
- if( m_xBroadcaster.is() )
- {
- m_xBroadcaster->removeModifyListener( this );
- m_xBroadcaster.clear();
- }
-}
-
-ModifyListenerCallBack::ModifyListenerCallBack( const Link<void*,void>& rCallBack )
- : pModifyListener_impl( new ModifyListenerCallBack_impl(rCallBack) )
- , m_xModifyListener( pModifyListener_impl )
-{
-}
-
-ModifyListenerCallBack::~ModifyListenerCallBack()
-{
- stopListening();
-}
-
-void ModifyListenerCallBack::stopListening()
-{
- pModifyListener_impl->stopListening();
-}
-
-} // namespace chart
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/view/axes/VAxisProperties.hxx b/chart2/source/view/axes/VAxisProperties.hxx
index 53d78c4..e6ecc72 100644
--- a/chart2/source/view/axes/VAxisProperties.hxx
+++ b/chart2/source/view/axes/VAxisProperties.hxx
@@ -155,7 +155,7 @@ struct AxisProperties final
TickmarkProperties makeTickmarkPropertiesForComplexCategories( sal_Int32 nTickLength, sal_Int32 nTickStartDistanceToAxis, sal_Int32 nTextLevel ) const;
private:
- AxisProperties();
+ AxisProperties() = delete;
TickmarkProperties makeTickmarkProperties( sal_Int32 nDepth ) const;
//@todo get this from somewhere; maybe for each subincrement
diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx
index 8af02b0..62966d3 100644
--- a/chart2/source/view/charttypes/VSeriesPlotter.cxx
+++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx
@@ -102,14 +102,6 @@ VDataSeriesGroup::CachedYValues::CachedYValues()
{
}
-VDataSeriesGroup::VDataSeriesGroup()
- : m_aSeriesVector()
- , m_bMaxPointCountDirty(true)
- , m_nMaxPointCount(0)
- , m_aListOfCachedYValues()
-{
-}
-
VDataSeriesGroup::VDataSeriesGroup( VDataSeries* pSeries )
: m_aSeriesVector(1,pSeries)
, m_bMaxPointCountDirty(true)
diff --git a/chart2/source/view/inc/VSeriesPlotter.hxx b/chart2/source/view/inc/VSeriesPlotter.hxx
index 2eeeb1a..fb4ffbb 100644
--- a/chart2/source/view/inc/VSeriesPlotter.hxx
+++ b/chart2/source/view/inc/VSeriesPlotter.hxx
@@ -76,7 +76,7 @@ private:
class VDataSeriesGroup final
{
public:
- VDataSeriesGroup();
+ VDataSeriesGroup() = delete;
VDataSeriesGroup( VDataSeries* pSeries );
~VDataSeriesGroup();
diff --git a/comphelper/source/container/embeddedobjectcontainer.cxx b/comphelper/source/container/embeddedobjectcontainer.cxx
index 169f375..1850c76 100644
--- a/comphelper/source/container/embeddedobjectcontainer.cxx
+++ b/comphelper/source/container/embeddedobjectcontainer.cxx
@@ -1172,12 +1172,6 @@ uno::Reference < io::XInputStream > EmbeddedObjectContainer::GetObjectStream( co
return xInputStream;
}
-uno::Reference < io::XInputStream > EmbeddedObjectContainer::GetObjectStream( const uno::Reference < embed::XEmbeddedObject >& xObj )
-{
- // try to load it from the container storage
- return GetObjectStream( GetEmbeddedObjectName( xObj ), nullptr );
-}
-
bool EmbeddedObjectContainer::InsertGraphicStream( const css::uno::Reference < css::io::XInputStream >& rStream, const OUString& rObjectName, const OUString& rMediaType )
{
try
diff --git a/comphelper/source/inc/comphelper_module.hxx b/comphelper/source/inc/comphelper_module.hxx
index 8c587f0..7569eb7 100644
--- a/comphelper/source/inc/comphelper_module.hxx
+++ b/comphelper/source/inc/comphelper_module.hxx
@@ -40,18 +40,6 @@ namespace comphelper { namespace module
};
/* -------------------------------------------------------------------- */
- class ComphelperModuleClient : public ::comphelper::OModuleClient
- {
- private:
- typedef ::comphelper::OModuleClient BaseClass;
-
- public:
- ComphelperModuleClient() : BaseClass( ComphelperModule::getInstance() )
- {
- }
- };
-
- /* -------------------------------------------------------------------- */
template < class TYPE >
class OAutoRegistration : public ::comphelper::OAutoRegistration< TYPE >
{
diff --git a/compilerplugins/clang/constantparam.cxx b/compilerplugins/clang/constantparam.cxx
index 570cb96..99db545 100644
--- a/compilerplugins/clang/constantparam.cxx
+++ b/compilerplugins/clang/constantparam.cxx
@@ -38,15 +38,8 @@ struct MyCallSiteInfo
};
bool operator < (const MyCallSiteInfo &lhs, const MyCallSiteInfo &rhs)
{
- if (lhs.sourceLocation < rhs.sourceLocation)
- return true;
- else if (lhs.sourceLocation > rhs.sourceLocation)
- return false;
- else if (lhs.paramIndex < rhs.paramIndex)
- return true;
- else if (lhs.paramIndex > rhs.paramIndex)
- return false;
- else return lhs.callValue < rhs.callValue;
+ return std::tie(lhs.sourceLocation, lhs.paramIndex, lhs.callValue)
+ < std::tie(rhs.sourceLocation, rhs.paramIndex, rhs.callValue);
}
diff --git a/compilerplugins/clang/unuseddefaultparams.cxx b/compilerplugins/clang/unuseddefaultparams.cxx
index 21979ea..0a3ce28 100644
--- a/compilerplugins/clang/unuseddefaultparams.cxx
+++ b/compilerplugins/clang/unuseddefaultparams.cxx
@@ -36,7 +36,8 @@ struct MyFuncInfo
};
bool operator < (const MyFuncInfo &lhs, const MyFuncInfo &rhs)
{
- return lhs.sourceLocation < rhs.sourceLocation;
+ return std::tie(lhs.returnType, lhs.nameAndParams)
+ < std::tie(rhs.returnType, rhs.nameAndParams);
}
diff --git a/compilerplugins/clang/unusedfields.cxx b/compilerplugins/clang/unusedfields.cxx
index dd928d3..a370cb3 100644
--- a/compilerplugins/clang/unusedfields.cxx
+++ b/compilerplugins/clang/unusedfields.cxx
@@ -50,12 +50,8 @@ struct MyFieldInfo
};
bool operator < (const MyFieldInfo &lhs, const MyFieldInfo &rhs)
{
- if (lhs.parentClass < rhs.parentClass)
- return true;
- else if (lhs.parentClass == rhs.parentClass)
- return lhs.fieldName < rhs.fieldName;
- else
- return false;
+ return std::tie(lhs.parentClass, lhs.fieldName)
+ < std::tie(rhs.parentClass, rhs.fieldName);
}
diff --git a/compilerplugins/clang/unusedmethods.cxx b/compilerplugins/clang/unusedmethods.cxx
index e0b9718..fe5825f 100644
--- a/compilerplugins/clang/unusedmethods.cxx
+++ b/compilerplugins/clang/unusedmethods.cxx
@@ -25,12 +25,12 @@ This plugin performs 3 different analyses:
It does so, by dumping various call/definition/use info to a log file.
Then we will post-process the various lists and find the set of unused methods.
-Be warned that it produces around 5G of log file.
+Be warned that it produces around 15G of log file.
The process goes something like this:
$ make check
$ make FORCE_COMPILE_ALL=1 COMPILER_PLUGIN_TOOL='unusedmethods' check
- $ ./compilerplugins/clang/unusedmethods.py unusedmethods.log > result.txt
+ $ ./compilerplugins/clang/unusedmethods.py unusedmethods.log
and then
$ for dir in *; do make FORCE_COMPILE_ALL=1 UPDATE_FILES=$dir COMPILER_PLUGIN_TOOL='unusedmethodsremove' $dir; done
@@ -55,7 +55,8 @@ struct MyFuncInfo
};
bool operator < (const MyFuncInfo &lhs, const MyFuncInfo &rhs)
{
- return lhs.sourceLocation < rhs.sourceLocation;
+ return std::tie(lhs.returnType, lhs.nameAndParams)
+ < std::tie(rhs.returnType, rhs.nameAndParams);
}
// try to limit the voluminous output a little
@@ -102,10 +103,12 @@ public:
}
bool shouldVisitTemplateInstantiations () const { return true; }
+ bool shouldVisitImplicitCode() const { return true; }
bool VisitCallExpr(CallExpr* );
bool VisitFunctionDecl( const FunctionDecl* decl );
bool VisitDeclRefExpr( const DeclRefExpr* );
+ bool VisitCXXConstructExpr( const CXXConstructExpr* );
private:
void logCallToRootMethods(const FunctionDecl* functionDecl, std::set<MyFuncInfo>& funcSet);
MyFuncInfo niceName(const FunctionDecl* functionDecl);
@@ -132,7 +135,11 @@ MyFuncInfo UnusedMethods::niceName(const FunctionDecl* functionDecl)
case AS_protected: aInfo.access = "protected"; break;
default: aInfo.access = "unknown"; break;
}
- aInfo.returnType = compat::getReturnType(*functionDecl).getCanonicalType().getAsString();
+ if (!isa<CXXConstructorDecl>(functionDecl)) {
+ aInfo.returnType = compat::getReturnType(*functionDecl).getCanonicalType().getAsString();
+ } else {
+ aInfo.returnType = "";
+ }
if (isa<CXXMethodDecl>(functionDecl)) {
const CXXRecordDecl* recordDecl = dyn_cast<CXXMethodDecl>(functionDecl)->getParent();
@@ -308,6 +315,19 @@ gotfunc:
return true;
}
+bool UnusedMethods::VisitCXXConstructExpr( const CXXConstructExpr* constructExpr )
+{
+ // Note that I don't ignore ANYTHING here, because I want to get calls to my code that result
+ // from template instantiation deep inside the STL and other external code
+
+ const CXXConstructorDecl* constructorDecl = constructExpr->getConstructor();
+ constructorDecl = constructorDecl->getCanonicalDecl();
+
+ logCallToRootMethods(constructorDecl, callSet);
+
+ return true;
+}
+
bool UnusedMethods::VisitFunctionDecl( const FunctionDecl* functionDecl )
{
functionDecl = functionDecl->getCanonicalDecl();
@@ -325,10 +345,7 @@ bool UnusedMethods::VisitFunctionDecl( const FunctionDecl* functionDecl )
if (isa<CXXDestructorDecl>(functionDecl)) {
return true;
}
- if (isa<CXXConstructorDecl>(functionDecl)) {
- return true;
- }
- if (functionDecl && functionDecl->isDeleted()) {
+ if (functionDecl->isDeleted() || functionDecl->isDefaulted()) {
return true;
}
diff --git a/configmgr/source/nodemap.hxx b/configmgr/source/nodemap.hxx
index 77c9dd0..1fcfed8 100644
--- a/configmgr/source/nodemap.hxx
+++ b/configmgr/source/nodemap.hxx
@@ -32,8 +32,7 @@ class NodeMap
{
NodeMapImpl maImpl;
- NodeMap(const NodeMap &rMap) :
- maImpl(rMap.maImpl) { clearCache(); }
+ NodeMap(const NodeMap &rMap) = delete;
public:
typedef NodeMapImpl::iterator iterator;
diff --git a/connectivity/source/drivers/mork/MQueryHelper.hxx b/connectivity/source/drivers/mork/MQueryHelper.hxx
index f8621bc..1081f75 100644
--- a/connectivity/source/drivers/mork/MQueryHelper.hxx
+++ b/connectivity/source/drivers/mork/MQueryHelper.hxx
@@ -56,7 +56,6 @@ namespace connectivity
protected:
node_type m_eNodeType;
- MQueryExpressionBase() : m_eNodeType( Unknown ) {}
explicit MQueryExpressionBase( node_type _eNodeType ) : m_eNodeType( _eNodeType ) {}
public:
diff --git a/connectivity/source/drivers/mozab/bootstrap/MNSINIParser.hxx b/connectivity/source/drivers/mozab/bootstrap/MNSINIParser.hxx
index 61c76c1..25874df 100644
--- a/connectivity/source/drivers/mozab/bootstrap/MNSINIParser.hxx
+++ b/connectivity/source/drivers/mozab/bootstrap/MNSINIParser.hxx
@@ -30,14 +30,6 @@ struct ini_NameValue
{
OUString sName;
OUString sValue;
-
- inline ini_NameValue()
- {}
- inline ini_NameValue(
- OUString const & name, OUString const & value )
- : sName( name ),
- sValue( value )
- {}
};
typedef std::list<
diff --git a/connectivity/source/inc/RowFunctionParser.hxx b/connectivity/source/inc/RowFunctionParser.hxx
index 49dad87..a0a8849 100644
--- a/connectivity/source/inc/RowFunctionParser.hxx
+++ b/connectivity/source/inc/RowFunctionParser.hxx
@@ -62,7 +62,6 @@ typedef std::shared_ptr< ExpressionNode > ExpressionNodeSharedPtr;
*/
struct OOO_DLLPUBLIC_DBTOOLS ParseError
{
- ParseError() {}
ParseError( const char* ) {}
};
@@ -108,8 +107,7 @@ public:
private:
// disabled constructor/destructor, since this is
// supposed to be a singleton
- FunctionParser();
-
+ FunctionParser() = delete;
FunctionParser(const FunctionParser&) = delete;
FunctionParser& operator=( const FunctionParser& ) = delete;
};
diff --git a/connectivity/source/inc/TSortIndex.hxx b/connectivity/source/inc/TSortIndex.hxx
index c633526..0744220 100644
--- a/connectivity/source/inc/TSortIndex.hxx
+++ b/connectivity/source/inc/TSortIndex.hxx
@@ -108,9 +108,6 @@ namespace connectivity
OKeySet()
: ORefVector<sal_Int32>()
, m_bFrozen(false){}
- OKeySet(Vector::size_type _nSize)
- : ORefVector<sal_Int32>(_nSize)
- , m_bFrozen(false){}
bool isFrozen() const { return m_bFrozen; }
void setFrozen() { m_bFrozen = true; }
diff --git a/connectivity/source/inc/file/fcode.hxx b/connectivity/source/inc/file/fcode.hxx
index a4f2d65..c5deb00 100644
--- a/connectivity/source/inc/file/fcode.hxx
+++ b/connectivity/source/inc/file/fcode.hxx
@@ -141,8 +141,6 @@ namespace connectivity
class OOperandResult : public OOperandValue
{
protected:
- OOperandResult(const ORowSetValue& _rVar, sal_Int32 eDbType)
- :OOperandValue(_rVar, eDbType) {}
OOperandResult(sal_Int32 eDbType)
:OOperandValue(eDbType) {}
public:
diff --git a/connectivity/source/inc/file/quotedstring.hxx b/connectivity/source/inc/file/quotedstring.hxx
index 05246ea..ead2598 100644
--- a/connectivity/source/inc/file/quotedstring.hxx
+++ b/connectivity/source/inc/file/quotedstring.hxx
@@ -34,7 +34,6 @@ namespace connectivity
OUString m_sString;
public:
QuotedTokenizedString() {}
- QuotedTokenizedString(const OUString& _sString) : m_sString(_sString){}
sal_Int32 GetTokenCount( sal_Unicode cTok , sal_Unicode cStrDel ) const;
OUString GetTokenSpecial(sal_Int32& nStartPos, sal_Unicode cTok = ';', sal_Unicode cStrDel = '\0') const;
diff --git a/connectivity/source/inc/java/math/BigDecimal.hxx b/connectivity/source/inc/java/math/BigDecimal.hxx
index cea8f0c..e3033c8 100644
--- a/connectivity/source/inc/java/math/BigDecimal.hxx
+++ b/connectivity/source/inc/java/math/BigDecimal.hxx
@@ -32,8 +32,6 @@ namespace connectivity
public:
virtual jclass getMyClass() const override;
virtual ~java_math_BigDecimal();
- // a Constructor, that is needed for when Returning the Object is needed:
- java_math_BigDecimal( JNIEnv * pEnv, jobject myObj ) : java_lang_Object( pEnv, myObj ){}
java_math_BigDecimal( const OUString& _par0 );
java_math_BigDecimal( const double& _par0 );
diff --git a/connectivity/source/inc/java/sql/DriverPropertyInfo.hxx b/connectivity/source/inc/java/sql/DriverPropertyInfo.hxx
index 1db9dae..a745fef 100644
--- a/connectivity/source/inc/java/sql/DriverPropertyInfo.hxx
+++ b/connectivity/source/inc/java/sql/DriverPropertyInfo.hxx
@@ -37,8 +37,6 @@ namespace connectivity
public:
virtual jclass getMyClass() const override;
virtual ~java_sql_DriverPropertyInfo();
- // A ctor that is needed for returning the object
- java_sql_DriverPropertyInfo( JNIEnv * pEnv, jobject myObj ) : java_lang_Object( pEnv, myObj ){}
};
}
diff --git a/connectivity/source/inc/java/sql/SQLException.hxx b/connectivity/source/inc/java/sql/SQLException.hxx
index 7efedfa..b8794e9 100644
--- a/connectivity/source/inc/java/sql/SQLException.hxx
+++ b/connectivity/source/inc/java/sql/SQLException.hxx
@@ -31,7 +31,6 @@ namespace connectivity
{
public:
// A ctor that is needed for returning the object
- java_sql_SQLException(){}
java_sql_SQLException( const java_sql_SQLException_BASE& _rException,const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> & _rContext);
};
diff --git a/connectivity/source/inc/java/util/Property.hxx b/connectivity/source/inc/java/util/Property.hxx
index e9dd3d1..bb9c01b 100644
--- a/connectivity/source/inc/java/util/Property.hxx
+++ b/connectivity/source/inc/java/util/Property.hxx
@@ -31,8 +31,6 @@ namespace connectivity
public:
virtual jclass getMyClass() const override;
virtual ~java_util_Properties();
- // A ctor that is needed for returning the object
- java_util_Properties( JNIEnv * pEnv, jobject myObj ) : java_lang_Object( pEnv, myObj ){}
java_util_Properties( );
void setProperty(const OUString& key, const OUString& value);
};
diff --git a/cui/source/dialogs/SpellAttrib.hxx b/cui/source/dialogs/SpellAttrib.hxx
index 4069af8..8578914 100644
--- a/cui/source/dialogs/SpellAttrib.hxx
+++ b/cui/source/dialogs/SpellAttrib.hxx
@@ -44,9 +44,6 @@ struct SpellErrorDescription
css::uno::Sequence< OUString > aSuggestions;
OUString sRuleId;
- SpellErrorDescription() :
- bIsGrammarError( false ){}
-
SpellErrorDescription( bool bGrammar,
const OUString& rText,
const css::lang::Locale& rLocale,
@@ -99,8 +96,7 @@ public:
private:
SpellErrorDescription m_aSpellErrorDescription;
- //not accessible
- SpellErrorAttrib();
+ SpellErrorAttrib() = delete;
public:
SpellErrorAttrib( const SpellErrorDescription& );
SpellErrorAttrib( const SpellErrorAttrib& rAttr );
@@ -119,8 +115,7 @@ class SpellLanguageAttrib : public TextAttrib
{
LanguageType m_eLanguage;
- //not accessible
- SpellLanguageAttrib();
+ SpellLanguageAttrib() = delete;
public:
SpellLanguageAttrib(LanguageType eLanguage);
@@ -139,8 +134,7 @@ class SpellBackgroundAttrib : public TextAttrib
{
Color m_aBackgroundColor;
- //not accessible
- SpellBackgroundAttrib();
+ SpellBackgroundAttrib() = delete;
public:
SpellBackgroundAttrib(const Color& rCol);
diff --git a/cui/source/inc/autocdlg.hxx b/cui/source/inc/autocdlg.hxx
index 8ea2d9a..1d3fae0 100644
--- a/cui/source/inc/autocdlg.hxx
+++ b/cui/source/inc/autocdlg.hxx
@@ -191,13 +191,6 @@ class AutoCorrEdit : public Edit
void dispose() override;
public:
- AutoCorrEdit(vcl::Window* pParent, const ResId& rResId)
- : Edit(pParent, rResId)
- , m_nCol(0)
- , bSpaces(false)
- {
- }
-
AutoCorrEdit(vcl::Window* pParent)
: Edit(pParent)
, m_nCol(0)
diff --git a/cui/source/inc/cuihyperdlg.hxx b/cui/source/inc/cuihyperdlg.hxx
index 2c56294..41dcd1b 100644
--- a/cui/source/inc/cuihyperdlg.hxx
+++ b/cui/source/inc/cuihyperdlg.hxx
@@ -88,7 +88,6 @@ public:
void SetReadOnlyMode( bool bReadOnly );
inline bool IsHTMLDoc() const { return mbIsHTMLDoc; }
- inline SfxBindings* GetBindings() const { return mpBindings; };
inline SfxDispatcher* GetDispatcher() const { return mpBindings->GetDispatcher(); }
};
diff --git a/cui/source/inc/insdlg.hxx b/cui/source/inc/insdlg.hxx
index c4624a6..58e79ad 100644
--- a/cui/source/inc/insdlg.hxx
+++ b/cui/source/inc/insdlg.hxx
@@ -94,19 +94,6 @@ public:
css::uno::Reference< css::io::XInputStream > GetIconIfIconified( OUString* pGraphicMediaType ) override;
};
-class SvInsertPlugInDialog : public InsertObjectDialog_Impl
-{
-private:
- DECL_LINK_TYPED(BrowseHdl, Button*, void);
-
-public:
- SvInsertPlugInDialog(vcl::Window* pParent,
- const css::uno::Reference < css::embed::XStorage >& xStorage);
- virtual ~SvInsertPlugInDialog();
- virtual void dispose() override;
- virtual short Execute() override;
-};
-
class SfxInsertFloatingFrameDialog : public InsertObjectDialog_Impl
{
private:
diff --git a/cui/source/inc/macropg.hxx b/cui/source/inc/macropg.hxx
index 2d3d119..e78045b 100644
--- a/cui/source/inc/macropg.hxx
+++ b/cui/source/inc/macropg.hxx
@@ -42,7 +42,6 @@ struct EventDisplayName
{
const sal_Char* pAsciiEventName;
sal_uInt16 nEventResourceID;
- EventDisplayName() : pAsciiEventName( nullptr ), nEventResourceID(0) { }
EventDisplayName( const sal_Char* _pAsciiName, const sal_uInt16 _nResId )
: pAsciiEventName( _pAsciiName )
, nEventResourceID( _nResId )
diff --git a/cui/source/inc/optdict.hxx b/cui/source/inc/optdict.hxx
index ad46c19..670d3b4 100644
--- a/cui/source/inc/optdict.hxx
+++ b/cui/source/inc/optdict.hxx
@@ -78,8 +78,6 @@ class SvxDictEdit : public Edit
bool bSpaces;
public:
- SvxDictEdit(vcl::Window* pParent, const ResId& rResId) :
- Edit(pParent, rResId), bSpaces(false){}
SvxDictEdit(vcl::Window* pParent, WinBits aWB) :
Edit(pParent, aWB), bSpaces(false){}
diff --git a/cui/source/inc/scriptdlg.hxx b/cui/source/inc/scriptdlg.hxx
index 54b659e..dd58860 100644
--- a/cui/source/inc/scriptdlg.hxx
+++ b/cui/source/inc/scriptdlg.hxx
@@ -117,9 +117,7 @@ private:
bool loaded;
css::uno::Reference< css::script::browse::XBrowseNode > nodes;
css::uno::Reference< css::frame::XModel > model;
- SFEntry(){}
public:
- SFEntry( sal_uInt8 nT ) { nType = nT; loaded=false; }
SFEntry( sal_uInt8 nT,
const css::uno::Reference< css::script::browse::XBrowseNode >& entryNodes ,
const css::uno::Reference< css::frame::XModel >& entryModel) { nType = nT; nodes = entryNodes; loaded=false; model = entryModel; }
diff --git a/cui/source/options/optinet2.cxx b/cui/source/options/optinet2.cxx
index 9ca93fc..2dc815a 100644
--- a/cui/source/options/optinet2.cxx
+++ b/cui/source/options/optinet2.cxx
@@ -551,40 +551,6 @@ IMPL_STATIC_LINK_TYPED( SvxProxyTabPage, LoseFocusHdl_Impl, Control&, rControl,
}
-void SvxScriptExecListBox::RequestHelp( const HelpEvent& rHEvt )
-{ // try to show tips just like as on toolbars
- sal_Int32 nPos=LISTBOX_ENTRY_NOTFOUND;
- sal_Int32 nTop = GetTopEntry();
- sal_uInt16 nCount = GetDisplayLineCount(); // Attention: Not GetLineCount()
- Point aPt = ScreenToOutputPixel( rHEvt.GetMousePosPixel() );
- Rectangle aItemRect;
- if( nCount > 0 ) // if there're some entries, find it.
- for( nPos = nTop ; nPos <= nTop+nCount-1 ; nPos++ ) {
- aItemRect = GetBoundingRectangle(nPos);
- if( aPt.Y() < aItemRect.Top() || aPt.Y() > aItemRect.Bottom() )
- continue;
- else
- break;
- }
- else // if not, nothing happens.
- return;
- OUString aHelpText;
- if( nPos <= nTop+nCount-1 ) // if find the matching entry, get its content.
- aHelpText = GetEntry(nPos);
- if( aHelpText.getLength() && GetTextWidth(aHelpText)<GetOutputSizePixel().Width() )
- aHelpText.clear(); // if the entry is quite short, clear the helping tip content.
- aItemRect = Rectangle(Point(0,0),GetSizePixel());
- aPt = Point(OutputToScreenPixel( aItemRect.TopLeft() ));
- aItemRect.Left() = aPt.X();
- aItemRect.Top() = aPt.Y();
- aPt = OutputToScreenPixel( aItemRect.BottomRight() );
- aItemRect.Right() = aPt.X();
- aItemRect.Bottom() = aPt.Y();
- if( rHEvt.GetMode() == HelpEventMode::BALLOON )
- Help::ShowBalloon( this, aItemRect.Center(), aItemRect, aHelpText);
- else
- Help::ShowQuickHelp( this, aItemRect, aHelpText );
-}
/********************************************************************/
/* */
diff --git a/cui/source/options/optinet2.hxx b/cui/source/options/optinet2.hxx
index 16fc4c9..a34eccc 100644
--- a/cui/source/options/optinet2.hxx
+++ b/cui/source/options/optinet2.hxx
@@ -98,19 +98,6 @@ public:
virtual void Reset( const SfxItemSet* rSet ) override;
};
-// #98647# class SvxScriptExecListBox ------------------------------------
-class SvxScriptExecListBox : public ListBox
-{ // for adding tooltips to ListBox
-public:
- SvxScriptExecListBox( vcl::Window* pParent, WinBits nStyle = WB_BORDER )
- :ListBox(pParent, nStyle) {}
- SvxScriptExecListBox( vcl::Window* pParent, const ResId& rResId )
- :ListBox(pParent, rResId) {}
-
-protected:
- virtual void RequestHelp( const HelpEvent& rHEvt ) override;
-};
-
// class SvxSecurityTabPage ---------------------------------------------
class SvtSecurityOptions;
diff --git a/cui/source/options/optjava.hxx b/cui/source/options/optjava.hxx
index 85905df..bee6894 100644
--- a/cui/source/options/optjava.hxx
+++ b/cui/source/options/optjava.hxx
@@ -148,9 +148,6 @@ private:
m_pAssignedList->GetSelectEntryPos()
!= LISTBOX_ENTRY_NOTFOUND ); }
- inline void EnableAssignButton()
- { m_pAssignBtn->Enable(); }
-
inline void DisableAssignButton()
{ m_pAssignBtn->Disable(); }
diff --git a/dbaccess/source/core/api/RowSetRow.hxx b/dbaccess/source/core/api/RowSetRow.hxx
index ece120f..93368e0 100644
--- a/dbaccess/source/core/api/RowSetRow.hxx
+++ b/dbaccess/source/core/api/RowSetRow.hxx
@@ -38,7 +38,6 @@ namespace dbaccess
ORowSetOldRowHelper& operator=(const ORowSetOldRowHelper& _rRH) = delete;
ORowSetOldRowHelper(const ORowSetOldRowHelper& _rRh) = delete;
public:
- ORowSetOldRowHelper(){}
explicit ORowSetOldRowHelper(const ORowSetRow& _rRow)
: m_aRow(_rRow)
{}
diff --git a/dbaccess/source/core/api/datasettings.cxx b/dbaccess/source/core/api/datasettings.cxx
index 61c4f7a..b5403eb 100644
--- a/dbaccess/source/core/api/datasettings.cxx
+++ b/dbaccess/source/core/api/datasettings.cxx
@@ -111,21 +111,6 @@ ODataSettings_Base::ODataSettings_Base()
{
}
-ODataSettings_Base::ODataSettings_Base(const ODataSettings_Base& _rSource)
- :m_sFilter( _rSource.m_sFilter )
- ,m_sHavingClause( _rSource.m_sHavingClause )
- ,m_sGroupBy( _rSource.m_sGroupBy )
- ,m_sOrder( _rSource.m_sOrder )
- ,m_bApplyFilter( _rSource.m_bApplyFilter )
- ,m_aFont( _rSource.m_aFont )
- ,m_aRowHeight( _rSource.m_aRowHeight )
- ,m_aTextColor( _rSource.m_aTextColor )
- ,m_aTextLineColor( _rSource.m_aTextLineColor )
- ,m_nFontEmphasis( _rSource.m_nFontEmphasis )
- ,m_nFontRelief( _rSource.m_nFontRelief )
-{
-}
-
ODataSettings_Base::~ODataSettings_Base()
{
}
diff --git a/dbaccess/source/core/inc/core_resource.hxx b/dbaccess/source/core/inc/core_resource.hxx
index 4db3848..e09f968 100644
--- a/dbaccess/source/core/inc/core_resource.hxx
+++ b/dbaccess/source/core/inc/core_resource.hxx
@@ -44,7 +44,7 @@ namespace dbaccess
private:
// no instantiation allowed
- ResourceManager() { }
+ ResourceManager() = delete;
~ResourceManager() { }
protected:
diff --git a/dbaccess/source/core/inc/datasettings.hxx b/dbaccess/source/core/inc/datasettings.hxx
index 01e96669..1ca0c69 100644
--- a/dbaccess/source/core/inc/datasettings.hxx
+++ b/dbaccess/source/core/inc/datasettings.hxx
@@ -52,7 +52,7 @@ public:
protected:
ODataSettings_Base();
- ODataSettings_Base(const ODataSettings_Base& _rSource);
+ ODataSettings_Base(const ODataSettings_Base& _rSource) = delete;
~ODataSettings_Base();
};
// ODataSettings - a base class which implements the property handling
diff --git a/dbaccess/source/core/recovery/subcomponents.hxx b/dbaccess/source/core/recovery/subcomponents.hxx
index e48d32b..763b23f 100644
--- a/dbaccess/source/core/recovery/subcomponents.hxx
+++ b/dbaccess/source/core/recovery/subcomponents.hxx
@@ -54,12 +54,6 @@ namespace dbaccess
,bForEditing( false )
{
}
-
- SubComponentDescriptor( const OUString& i_rName, const bool i_bForEditing )
- :sName( i_rName )
- ,bForEditing( i_bForEditing )
- {
- }
};
typedef std::unordered_map< OUString, SubComponentDescriptor, OUStringHash > MapStringToCompDesc;
diff --git a/dbaccess/source/ext/macromigration/migrationerror.hxx b/dbaccess/source/ext/macromigration/migrationerror.hxx
index a714388..00be94d 100644
--- a/dbaccess/source/ext/macromigration/migrationerror.hxx
+++ b/dbaccess/source/ext/macromigration/migrationerror.hxx
@@ -65,12 +65,6 @@ namespace dbmm
::std::vector< OUString > aErrorDetails;
const css::uno::Any aCaughtException;
- explicit MigrationError(
- const MigrationErrorType _eType )
- :eType( _eType )
- {
- }
-
MigrationError(
const MigrationErrorType _eType,
const css::uno::Any& _rCaughtException )
diff --git a/dbaccess/source/filter/xml/xmlExport.hxx b/dbaccess/source/filter/xml/xmlExport.hxx
index 237d046..4a9c6a1 100644
--- a/dbaccess/source/filter/xml/xmlExport.hxx
+++ b/dbaccess/source/filter/xml/xmlExport.hxx
@@ -156,8 +156,7 @@ class ODBExport : public SvXMLExport
rtl::Reference < XMLPropertySetMapper > GetTableStylesPropertySetMapper() const;
-private:
- ODBExport();
+ ODBExport() = delete;
protected:
virtual void ExportStyles_( bool bUsed ) override;
diff --git a/dbaccess/source/ui/dlg/TextConnectionHelper.hxx b/dbaccess/source/ui/dlg/TextConnectionHelper.hxx
index c07f669d..294ed1e 100644
--- a/dbaccess/source/ui/dlg/TextConnectionHelper.hxx
+++ b/dbaccess/source/ui/dlg/TextConnectionHelper.hxx
@@ -42,8 +42,6 @@ namespace dbaui
// OTextConnectionPage
class OTextConnectionHelper : public TabPage
{
- OTextConnectionHelper();
-
public:
OTextConnectionHelper( vcl::Window* pParent, const short _nAvailableSections );
virtual ~OTextConnectionHelper();
diff --git a/dbaccess/source/ui/dlg/dbfindex.hxx b/dbaccess/source/ui/dlg/dbfindex.hxx
index 385c939..5335816 100644
--- a/dbaccess/source/ui/dlg/dbfindex.hxx
+++ b/dbaccess/source/ui/dlg/dbfindex.hxx
@@ -60,7 +60,6 @@ private:
TableIndexList aIndexList;
public:
- OTableInfo() { }
explicit OTableInfo( const OUString& rName ) : aTableName(rName) { }
void WriteInfFile( const OUString& rDSN ) const;
diff --git a/dbaccess/source/ui/dlg/detailpages.hxx b/dbaccess/source/ui/dlg/detailpages.hxx
index c6a6eb8..5ce4eab 100644
--- a/dbaccess/source/ui/dlg/detailpages.hxx
+++ b/dbaccess/source/ui/dlg/detailpages.hxx
@@ -240,13 +240,6 @@ namespace dbaui
DECL_LINK_TYPED( OnCheckBoxClick, Button*, void );
};
- // OMozillaDetailsPage Detail page for Mozilla and Thunderbird addressbook
- class OMozillaDetailsPage : public OCommonBehaviourTabPage
- {
- public:
- OMozillaDetailsPage( vcl::Window* pParent, const SfxItemSet& _rCoreAttrs );
- };
-
// OTextDetailsPage
class OTextDetailsPage : public OCommonBehaviourTabPage
{
diff --git a/dbaccess/source/ui/inc/SqlNameEdit.hxx b/dbaccess/source/ui/inc/SqlNameEdit.hxx
index ee5fb14..9889c98 100644
--- a/dbaccess/source/ui/inc/SqlNameEdit.hxx
+++ b/dbaccess/source/ui/inc/SqlNameEdit.hxx
@@ -56,11 +56,6 @@ namespace dbaui
,OSQLNameChecker(_rAllowedChars)
{
}
- OSQLNameEdit(vcl::Window* _pParent,const ResId& _rRes,const OUString& _rAllowedChars = OUString())
- : Edit(_pParent,_rRes)
- ,OSQLNameChecker(_rAllowedChars)
- {
- }
// Window overrides
// virtual bool PreNotify( NotifyEvent& rNEvt );
@@ -77,11 +72,6 @@ namespace dbaui
, OSQLNameChecker(_rAllowedChars)
{
}
- OSQLNameComboBox(vcl::Window* _pParent,const ResId& _rRes,const OUString& _rAllowedChars = OUString())
- : ComboBox(_pParent,_rRes)
- , OSQLNameChecker(_rAllowedChars)
- {
- }
// Window overrides
// Edit
diff --git a/dbaccess/source/ui/inc/TokenWriter.hxx b/dbaccess/source/ui/inc/TokenWriter.hxx
index edee89a..db45468 100644
--- a/dbaccess/source/ui/inc/TokenWriter.hxx
+++ b/dbaccess/source/ui/inc/TokenWriter.hxx
@@ -212,12 +212,6 @@ namespace dbaui
const css::uno::Reference< css::uno::XComponentContext >& _rM,
const OUString& rExchange = OUString());
- // import data
- ORowSetImportExport(const SharedConnection& _rxConnection,
- const css::uno::Reference< css::uno::XComponentContext >& _rM)
- : ODatabaseImportExport(_rxConnection,nullptr,_rM)
- {}
-
virtual bool Write() override;
virtual bool Read() override;
diff --git a/dbaccess/source/ui/inc/defaultobjectnamecheck.hxx b/dbaccess/source/ui/inc/defaultobjectnamecheck.hxx
index 7087d7f..6db7319 100644
--- a/dbaccess/source/ui/inc/defaultobjectnamecheck.hxx
+++ b/dbaccess/source/ui/inc/defaultobjectnamecheck.hxx
@@ -66,9 +66,6 @@ namespace dbaui
const OUString& _rObjectName,
::dbtools::SQLExceptionInfo& _out_rErrorToDisplay
) const override;
-
- private:
- HierarchicalNameCheck(); // never implemented
};
// DynamicTableOrQueryNameCheck
@@ -118,9 +115,6 @@ namespace dbaui
const OUString& _rObjectName,
::dbtools::SQLExceptionInfo& _out_rErrorToDisplay
) const override;
-
- private:
- DynamicTableOrQueryNameCheck(); // never implemented
};
} // namespace dbaui
diff --git a/dbaccess/source/ui/inc/indexes.hxx b/dbaccess/source/ui/inc/indexes.hxx
index 91f5d40..b7c765f 100644
--- a/dbaccess/source/ui/inc/indexes.hxx
+++ b/dbaccess/source/ui/inc/indexes.hxx
@@ -73,9 +73,6 @@ namespace dbaui
bool isNew() const { return getOriginalName().isEmpty(); }
void flagAsNew(const GrantIndexAccess&) { sOriginalName.clear(); }
void flagAsCommitted(const GrantIndexAccess&) { sOriginalName = sName; }
-
- private:
- OIndex(); // not implemented
};
typedef std::vector<OIndex> Indexes;
diff --git a/dbaccess/source/ui/misc/UpdateHelperImpl.hxx b/dbaccess/source/ui/misc/UpdateHelperImpl.hxx
index 4d3d827..d41aec1 100644
--- a/dbaccess/source/ui/misc/UpdateHelperImpl.hxx
+++ b/dbaccess/source/ui/misc/UpdateHelperImpl.hxx
@@ -29,55 +29,6 @@
namespace dbaui
{
- class ORowUpdateHelper : public IUpdateHelper
- {
- css::uno::Reference< css::sdbc::XRowUpdate > m_xRowUpdate;
- css::uno::Reference< css::sdbc::XResultSetUpdate > m_xResultSetUpdate;
- public:
- explicit ORowUpdateHelper(const css::uno::Reference< css::sdbc::XRowSet>& _xRowSet)
- :m_xRowUpdate(_xRowSet,css::uno::UNO_QUERY)
- ,m_xResultSetUpdate(_xRowSet,css::uno::UNO_QUERY)
- {
- }
- virtual ~ORowUpdateHelper() {}
- virtual void updateString(sal_Int32 _nPos, const OUString& _sValue) override
- {
- m_xRowUpdate->updateString(_nPos, _sValue);
- }
- virtual void updateDouble(sal_Int32 _nPos,const double& _nValue) override
- {
- m_xRowUpdate->updateDouble(_nPos, _nValue);
- }
- virtual void updateDate(sal_Int32 _nPos,const css::util::Date& _nValue) override
- {
- m_xRowUpdate->updateDate(_nPos, _nValue);
- }
- virtual void updateTime(sal_Int32 _nPos,const css::util::Time& _nValue) override
- {
- m_xRowUpdate->updateTime(_nPos, _nValue);
- }
- virtual void updateTimestamp(sal_Int32 _nPos,const css::util::DateTime& _nValue) override
- {
- m_xRowUpdate->updateTimestamp(_nPos, _nValue);
- }
- virtual void updateInt(sal_Int32 _nPos, sal_Int32 _nValue) override
- {
- m_xRowUpdate->updateInt(_nPos, _nValue);
- }
- virtual void updateNull(sal_Int32 _nPos, ::sal_Int32) override
- {
- m_xRowUpdate->updateNull(_nPos);
- }
- virtual void moveToInsertRow() override
- {
- m_xResultSetUpdate->moveToInsertRow();
- }
- virtual void insertRow() override
- {
- m_xResultSetUpdate->insertRow();
- }
- };
-
class OParameterUpdateHelper : public IUpdateHelper
{
css::uno::Reference< css::sdbc::XPreparedStatement > m_xPrepared;
diff --git a/desktop/source/deployment/manager/dp_commandenvironments.hxx b/desktop/source/deployment/manager/dp_commandenvironments.hxx
index c6515e4..fcc44ce 100644
--- a/desktop/source/deployment/manager/dp_commandenvironments.hxx
+++ b/desktop/source/deployment/manager/dp_commandenvironments.hxx
@@ -87,7 +87,6 @@ private:
OUString m_repository;
bool m_bSuppressLicense;
public:
- LicenseCommandEnv() : m_bSuppressLicense(false) {};
LicenseCommandEnv(
css::uno::Reference< css::task::XInteractionHandler> const & handler,
bool bSuppressLicense,
@@ -108,7 +107,6 @@ class NoLicenseCommandEnv : public BaseCommandEnv
{
public:
- NoLicenseCommandEnv(){};
explicit NoLicenseCommandEnv(css::uno::Reference< css::task::XInteractionHandler> const & handler);
// XInteractionHandler
diff --git a/drawinglayer/source/attribute/fillgraphicattribute.cxx b/drawinglayer/source/attribute/fillgraphicattribute.cxx
index 9465af2..5331f47 100644
--- a/drawinglayer/source/attribute/fillgraphicattribute.cxx
+++ b/drawinglayer/source/attribute/fillgraphicattribute.cxx
@@ -104,11 +104,6 @@ namespace drawinglayer
{
}
- FillGraphicAttribute::FillGraphicAttribute()
- : mpFillGraphicAttribute(theGlobalDefault::get())
- {
- }
-
FillGraphicAttribute::FillGraphicAttribute(const FillGraphicAttribute& rCandidate)
: mpFillGraphicAttribute(rCandidate.mpFillGraphicAttribute)
{
diff --git a/drawinglayer/source/attribute/fontattribute.cxx b/drawinglayer/source/attribute/fontattribute.cxx
index 110404e..20d743d 100644
--- a/drawinglayer/source/attribute/fontattribute.cxx
+++ b/drawinglayer/source/attribute/fontattribute.cxx
@@ -144,11 +144,6 @@ namespace drawinglayer
{
}
- bool FontAttribute::isDefault() const
- {
- return mpFontAttribute.same_object(theGlobalDefault::get());
- }
-
FontAttribute& FontAttribute::operator=(const FontAttribute& rCandidate)
{
mpFontAttribute = rCandidate.mpFontAttribute;
diff --git a/drawinglayer/source/attribute/materialattribute3d.cxx b/drawinglayer/source/attribute/materialattribute3d.cxx
index 72fce36..59d39a0 100644
--- a/drawinglayer/source/attribute/materialattribute3d.cxx
+++ b/drawinglayer/source/attribute/materialattribute3d.cxx
@@ -110,11 +110,6 @@ namespace drawinglayer
{
}
- bool MaterialAttribute3D::isDefault() const
- {
- return mpMaterialAttribute3D.same_object(theGlobalDefault::get());
- }
-
MaterialAttribute3D& MaterialAttribute3D::operator=(const MaterialAttribute3D& rCandidate)
{
mpMaterialAttribute3D = rCandidate.mpMaterialAttribute3D;
diff --git a/drawinglayer/source/attribute/sdrlightattribute3d.cxx b/drawinglayer/source/attribute/sdrlightattribute3d.cxx
index 868bc9c..e249a88 100644
--- a/drawinglayer/source/attribute/sdrlightattribute3d.cxx
+++ b/drawinglayer/source/attribute/sdrlightattribute3d.cxx
@@ -47,13 +47,6 @@ namespace drawinglayer
{
}
- ImpSdr3DLightAttribute()
- : maColor(),
- maDirection(),
- mbSpecular(false)
- {
- }
-
// data read access
const basegfx::BColor& getColor() const { return maColor; }
const basegfx::B3DVector& getDirection() const { return maDirection; }
@@ -82,11 +75,6 @@ namespace drawinglayer
{
}
- Sdr3DLightAttribute::Sdr3DLightAttribute()
- : mpSdr3DLightAttribute(theGlobalDefault::get())
- {
- }
-
Sdr3DLightAttribute::Sdr3DLightAttribute(const Sdr3DLightAttribute& rCandidate)
: mpSdr3DLightAttribute(rCandidate.mpSdr3DLightAttribute)
{
@@ -96,11 +84,6 @@ namespace drawinglayer
{
}
- bool Sdr3DLightAttribute::isDefault() const
- {
- return mpSdr3DLightAttribute.same_object(theGlobalDefault::get());
- }
-
Sdr3DLightAttribute& Sdr3DLightAttribute::operator=(const Sdr3DLightAttribute& rCandidate)
{
mpSdr3DLightAttribute = rCandidate.mpSdr3DLightAttribute;
diff --git a/drawinglayer/source/attribute/sdrobjectattribute3d.cxx b/drawinglayer/source/attribute/sdrobjectattribute3d.cxx
index 8f7f93b..d513c39 100644
--- a/drawinglayer/source/attribute/sdrobjectattribute3d.cxx
+++ b/drawinglayer/source/attribute/sdrobjectattribute3d.cxx
@@ -70,21 +70,6 @@ namespace drawinglayer
{
}
- ImpSdr3DObjectAttribute()
- : maNormalsKind(css::drawing::NormalsKind_SPECIFIC),
- maTextureProjectionX(css::drawing::TextureProjectionMode_OBJECTSPECIFIC),
- maTextureProjectionY(css::drawing::TextureProjectionMode_OBJECTSPECIFIC),
- maTextureKind(css::drawing::TextureKind2_LUMINANCE),
- maTextureMode(css::drawing::TextureMode_REPLACE),
- maMaterial(),
- mbNormalsInvert(false),
- mbDoubleSided(false),
- mbShadow3D(false),
- mbTextureFilter(false),
- mbReducedLineGeometry(false)
- {
- }
-
// data read access
css::drawing::NormalsKind getNormalsKind() const { return maNormalsKind; }
css::drawing::TextureProjectionMode getTextureProjectionX() const { return maTextureProjectionX; }
@@ -143,20 +128,10 @@ namespace drawinglayer
{
}
- Sdr3DObjectAttribute::Sdr3DObjectAttribute()
- : mpSdr3DObjectAttribute(theGlobalDefault::get())
- {
- }
-
Sdr3DObjectAttribute::~Sdr3DObjectAttribute()
{
}
- bool Sdr3DObjectAttribute::isDefault() const
- {
- return mpSdr3DObjectAttribute.same_object(theGlobalDefault::get());
- }
-
Sdr3DObjectAttribute& Sdr3DObjectAttribute::operator=(const Sdr3DObjectAttribute& rCandidate)
{
mpSdr3DObjectAttribute = rCandidate.mpSdr3DObjectAttribute;
diff --git a/editeng/source/editeng/editdoc.hxx b/editeng/source/editeng/editdoc.hxx
index d052551..93b9495 100644
--- a/editeng/source/editeng/editdoc.hxx
+++ b/editeng/source/editeng/editdoc.hxx
@@ -381,16 +381,6 @@ private:
sal_Unicode nExtraValue;
- TextPortion()
- : pExtraInfos( nullptr )
- , nLen( 0 )
- , aOutSz()
- , nKind( PortionKind::TEXT )
- , nRightToLeftLevel( 0 )
- , nExtraValue( 0 )
- {
- }
-
public:
TextPortion( sal_Int32 nL )
: pExtraInfos( nullptr )
diff --git a/editeng/source/editeng/editundo.hxx b/editeng/source/editeng/editundo.hxx
index 4af7d38..5efcfd0 100644
--- a/editeng/source/editeng/editundo.hxx
+++ b/editeng/source/editeng/editundo.hxx
@@ -124,9 +124,6 @@ private:
public:
EditUndoRemoveChars(EditEngine* pEE, const EPaM& rEPaM, const OUString& rStr);
- const EPaM& GetEPaM() { return aEPaM; }
- OUString & GetStr() { return aText; }
-
virtual void Undo() override;
virtual void Redo() override;
};
diff --git a/editeng/source/editeng/impedit.hxx b/editeng/source/editeng/impedit.hxx
index 52c4c0a..d374d5c 100644
--- a/editeng/source/editeng/impedit.hxx
+++ b/editeng/source/editeng/impedit.hxx
@@ -685,7 +685,6 @@ private:
SpellInfo * CreateSpellInfo( bool bMultipleDocs );
- ImpEditEngine(); // disabled
ImpEditEngine(EditEngine* pEditEngine, SfxItemPool* pPool);
void InitDoc(bool bKeepParaAttribs);
EditDoc& GetEditDoc() { return aEditDoc; }
diff --git a/editeng/source/outliner/overflowingtxt.cxx b/editeng/source/outliner/overflowingtxt.cxx
index fd565a4..1b98ade 100644
--- a/editeng/source/outliner/overflowingtxt.cxx
+++ b/editeng/source/outliner/overflowingtxt.cxx
@@ -114,12 +114,6 @@ OverflowingText::OverflowingText(css::uno::Reference< css::datatransfer::XTransf
// class NonOverflowingText
-NonOverflowingText::NonOverflowingText(const EditTextObject * /*pTObj*/, bool bLastParaInterrupted)
- : mbLastParaInterrupted(bLastParaInterrupted)
-{
- // XXX: may have to delete pTObj
-}
-
NonOverflowingText::NonOverflowingText(const ESelection &aSel, bool bLastParaInterrupted)
: maContentSel(aSel)
, mbLastParaInterrupted(bLastParaInterrupted)
diff --git a/extensions/source/abpilot/datasourcehandling.hxx b/extensions/source/abpilot/datasourcehandling.hxx
index 893dc57..97c0441 100644
--- a/extensions/source/abpilot/datasourcehandling.hxx
+++ b/extensions/source/abpilot/datasourcehandling.hxx
@@ -178,9 +178,6 @@ namespace abp
,const OUString& _sName
,PackageAccessControl
);
-
- private:
- ODataSource( ); // never implemented
};
diff --git a/extensions/source/propctrlr/pcrcommon.hxx b/extensions/source/propctrlr/pcrcommon.hxx
index 1013290..0f4d7a6 100644
--- a/extensions/source/propctrlr/pcrcommon.hxx
+++ b/extensions/source/propctrlr/pcrcommon.hxx
@@ -83,7 +83,6 @@ namespace pcr
public:
inline StlSyntaxSequence() : UnoBase() { }
explicit inline StlSyntaxSequence( const UnoBase& rSeq ) : UnoBase( rSeq ) { }
- inline StlSyntaxSequence( const ELEMENT* pElements, sal_Int32 len ) : UnoBase( pElements, len ) { }
explicit inline StlSyntaxSequence( sal_Int32 len ) : UnoBase( len ) { }
typedef const ELEMENT* const_iterator;
diff --git a/extensions/source/propctrlr/unourl.hxx b/extensions/source/propctrlr/unourl.hxx
index 809d168..b5f15b6 100644
--- a/extensions/source/propctrlr/unourl.hxx
+++ b/extensions/source/propctrlr/unourl.hxx
@@ -42,9 +42,6 @@ namespace pcr
);
inline operator const css::util::URL& () const { return m_aURL; }
-
- private:
- UnoURL(); // never implemented
};
diff --git a/filter/Library_xmlfa.mk b/filter/Library_xmlfa.mk
index 0f6cddc..e23cd7d 100644
--- a/filter/Library_xmlfa.mk
+++ b/filter/Library_xmlfa.mk
@@ -38,7 +38,6 @@ $(eval $(call gb_Library_use_libraries,xmlfa,\
$(eval $(call gb_Library_add_exception_objects,xmlfa,\
filter/source/xmlfilteradaptor/XmlFilterAdaptor \
filter/source/xmlfilteradaptor/genericfilter \
- filter/source/xmlfilteradaptor/streamwrap \
))
# vim: set noet sw=4 ts=4:
diff --git a/filter/source/flash/swfwriter.hxx b/filter/source/flash/swfwriter.hxx
index 69c66a7..0a2ea58 100644
--- a/filter/source/flash/swfwriter.hxx
+++ b/filter/source/flash/swfwriter.hxx
@@ -188,7 +188,6 @@ public:
void addRGB( const Color& rColor );
void addRect( const Rectangle& rRect );
void addMatrix( const ::basegfx::B2DHomMatrix& rMatrix ); // #i73264#
- void addString( const char* pString );
void addStream( SvStream& rIn );
static void writeMatrix( SvStream& rOut, const ::basegfx::B2DHomMatrix& rMatrix ); // #i73264#
diff --git a/filter/source/flash/swfwriter2.cxx b/filter/source/flash/swfwriter2.cxx
index 3e06262..4d6683e 100644
--- a/filter/source/flash/swfwriter2.cxx
+++ b/filter/source/flash/swfwriter2.cxx
@@ -323,18 +323,6 @@ void Tag::writeMatrix( SvStream& rOut, const ::basegfx::B2DHomMatrix& rMatrix )
}
-void Tag::addString( const char* pString )
-{
- if( pString )
- {
- while( *pString )
- addUI8( *pString++ );
- }
-
- addUI8( 0 );
-}
-
-
void Tag::addStream( SvStream& rIn )
{
(*this).WriteStream( rIn );
diff --git a/filter/source/graphicfilter/icgm/cgmtypes.hxx b/filter/source/graphicfilter/icgm/cgmtypes.hxx
index ef560ed..8a6689d 100644
--- a/filter/source/graphicfilter/icgm/cgmtypes.hxx
+++ b/filter/source/graphicfilter/icgm/cgmtypes.hxx
@@ -25,7 +25,6 @@ struct FloatPoint
double X;
double Y;
FloatPoint():X(0), Y(0){};
- FloatPoint( const double& rX, const double& rY ) { X = rX; Y = rY; };
};
struct FloatRect
@@ -35,13 +34,6 @@ struct FloatRect
double Right;
double Bottom;
FloatRect():Left(0), Top(0), Right(0), Bottom(0){};
- FloatRect( const FloatPoint& rTopLeft, const FloatPoint& rBottomRight )
- {
- Left = rTopLeft.X;
- Top = rTopLeft.Y;
- Right = rBottomRight.X;
- Bottom = rBottomRight.Y;
- }
void Justify()
{
double fTemp;
diff --git a/filter/source/svg/gfxtypes.hxx b/filter/source/svg/gfxtypes.hxx
index ff09189..9f9d380 100644
--- a/filter/source/svg/gfxtypes.hxx
+++ b/filter/source/svg/gfxtypes.hxx
@@ -28,24 +28,12 @@ struct ARGBColor
{}
explicit ARGBColor(double fGrey) : a(1.0), r(fGrey), g(fGrey), b(fGrey)
{}
- ARGBColor( double r_, double g_, double b_ ) :
- a(1.0), r(r_), g(g_), b(b_)
- {}
- ARGBColor( double a_, double r_, double g_, double b_ ) :
- a(a_), r(r_), g(g_), b(b_)
- {}
ARGBColor( int r_, int g_, int b_ ) :
a(1.0),
r(toDoubleColor(sal::static_int_cast<sal_uInt8>(r_))),
g(toDoubleColor(sal::static_int_cast<sal_uInt8>(g_))),
b(toDoubleColor(sal::static_int_cast<sal_uInt8>(b_)))
{}
- ARGBColor( int a_, int r_, int g_, int b_ ) :
- a(toDoubleColor(sal::static_int_cast<sal_uInt8>(a_))),
- r(toDoubleColor(sal::static_int_cast<sal_uInt8>(r_))),
- g(toDoubleColor(sal::static_int_cast<sal_uInt8>(g_))),
- b(toDoubleColor(sal::static_int_cast<sal_uInt8>(b_)))
- {}
double a;
double r;
double g;
diff --git a/filter/source/svg/svgfilter.hxx b/filter/source/svg/svgfilter.hxx
index 0d4008c..dab095d 100644
--- a/filter/source/svg/svgfilter.hxx
+++ b/filter/source/svg/svgfilter.hxx
@@ -118,10 +118,6 @@ protected:
virtual void ExportContent_() override {}
virtual void ExportMasterStyles_() override {}
virtual sal_uInt32 exportDoc( enum ::xmloff::token::XMLTokenEnum /* eClass */ ) override { return 0; }
-
-private:
-
- SVGExport();
};
class ObjectRepresentation
diff --git a/filter/source/svg/svgwriter.hxx b/filter/source/svg/svgwriter.hxx
index 132d93b..6b056f7 100644
--- a/filter/source/svg/svgwriter.hxx
+++ b/filter/source/svg/svgwriter.hxx
@@ -89,8 +89,6 @@ private:
SVGFontExport& mrFontExport;
SvXMLElementExport* mpElemFont;
- SVGAttributeWriter();
-
static double ImplRound( double fVal );
public:
@@ -349,7 +347,6 @@ class SVGWriter : public cppu::WeakImplHelper< XSVGWriter >
private:
Reference< XComponentContext > mxContext;
Sequence< css::beans::PropertyValue > maFilterData;
- SVGWriter();
public:
explicit SVGWriter( const Sequence<Any>& args,
diff --git a/filter/source/xmlfilteradaptor/streamwrap.cxx b/filter/source/xmlfilteradaptor/streamwrap.cxx
deleted file mode 100644
index bcc2d97..0000000
--- a/filter/source/xmlfilteradaptor/streamwrap.cxx
+++ /dev/null
@@ -1,59 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-
-#include "streamwrap.hxx"
-#include <osl/file.hxx>
-
-namespace foo
-{
-
-using namespace ::com::sun::star::uno;
-using namespace ::com::sun::star::io;
-using namespace ::com::sun::star::lang;
-using namespace ::osl;
-
-
-//= OOutputStreamWrapper
-
-
-void SAL_CALL OOutputStreamWrapper::writeBytes(const css::uno::Sequence< sal_Int8 >& aData) throw( css::io::NotConnectedException, css::io::BufferSizeExceededException, css::uno::RuntimeException, std::exception )
-{
- sal_uInt64 nWritten = 0;
- rStream.write(aData.getConstArray(),aData.getLength(),nWritten);
- if (nWritten != (sal_uInt64)aData.getLength())
- {
- throw css::io::BufferSizeExceededException(OUString(),static_cast<css::uno::XWeak*>(this));
- }
-}
-
-
-void SAL_CALL OOutputStreamWrapper::flush() throw( css::io::NotConnectedException, css::io::BufferSizeExceededException, css::uno::RuntimeException, std::exception )
-{
-}
-
-
-void SAL_CALL OOutputStreamWrapper::closeOutput() throw( css::io::NotConnectedException, css::io::BufferSizeExceededException, css::uno::RuntimeException, std::exception )
-{
-}
-
-} // namespace utl
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/filter/source/xmlfilteradaptor/streamwrap.hxx b/filter/source/xmlfilteradaptor/streamwrap.hxx
deleted file mode 100644
index 1f57e31..0000000
--- a/filter/source/xmlfilteradaptor/streamwrap.hxx
+++ /dev/null
@@ -1,58 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#ifndef INCLUDED_FILTER_SOURCE_XMLFILTERADAPTOR_STREAMWRAP_HXX
-#define INCLUDED_FILTER_SOURCE_XMLFILTERADAPTOR_STREAMWRAP_HXX
-
-#include <osl/mutex.hxx>
-#include <com/sun/star/io/XOutputStream.hpp>
-#include <com/sun/star/io/XInputStream.hpp>
-#include <com/sun/star/io/XSeekable.hpp>
-#include <cppuhelper/implbase.hxx>
-
-namespace osl
-{
- class File;
-}
-
-namespace foo
-{
-
-//= OOutputStreamWrapper
-
-typedef ::cppu::WeakImplHelper<css::io::XOutputStream> OutputStreamWrapper_Base;
- // needed for some compilers
-class OOutputStreamWrapper : public OutputStreamWrapper_Base
-{
- ::osl::File& rStream;
-
-public:
- explicit OOutputStreamWrapper(osl::File& _rStream) :rStream(_rStream) { }
-
-// css::io::XOutputStream
- virtual void SAL_CALL writeBytes(const css::uno::Sequence< sal_Int8 >& aData) throw(css::io::NotConnectedException, css::io::BufferSizeExceededException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL flush() throw(css::io::NotConnectedException, css::io::BufferSizeExceededException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL closeOutput() throw(css::io::NotConnectedException, css::io::BufferSizeExceededException, css::uno::RuntimeException, std::exception) override;
-};
-
-} // namespace utl
-
-
-#endif // INCLUDED_FILTER_SOURCE_XMLFILTERADAPTOR_STREAMWRAP_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/forms/source/component/DatabaseForm.hxx b/forms/source/component/DatabaseForm.hxx
index 415fb24..1138c2a 100644
--- a/forms/source/component/DatabaseForm.hxx
+++ b/forms/source/component/DatabaseForm.hxx
@@ -107,10 +107,6 @@ public:
,nRepresentation( _nRepresent )
{
}
-
- HtmlSuccessfulObj()
- {
- }
};
typedef std::vector<HtmlSuccessfulObj> HtmlSuccessfulObjList;
diff --git a/forms/source/component/FormComponent.cxx b/forms/source/component/FormComponent.cxx
index 27ddd31e..7d66f42 100644
--- a/forms/source/component/FormComponent.cxx
+++ b/forms/source/component/FormComponent.cxx
@@ -1104,18 +1104,6 @@ oslInterlockedCount OControlModel::unlockInstance( LockAccess )
return lockCount;
}
-void OControlModel::firePropertyChanges( const Sequence< sal_Int32 >& _rHandles, const Sequence< Any >& _rOldValues,
- const Sequence< Any >& _rNewValues, LockAccess )
-{
- OPropertySetHelper::fire(
- const_cast< Sequence< sal_Int32 >& >( _rHandles ).getArray(),
- _rNewValues.getConstArray(),
- _rOldValues.getConstArray(),
- _rHandles.getLength(),
- false
- );
-}
-
void OControlModel::firePropertyChanges( const std::vector< sal_Int32 >& _rHandles, const std::vector< Any >& _rOldValues,
const std::vector< Any >& _rNewValues, LockAccess )
{
diff --git a/forms/source/inc/FormComponent.hxx b/forms/source/inc/FormComponent.hxx
index 201cf13..da3bb20 100644
--- a/forms/source/inc/FormComponent.hxx
+++ b/forms/source/inc/FormComponent.hxx
@@ -501,12 +501,6 @@ public:
const std::vector< css::uno::Any >& _rNewValues,
LockAccess
);
- void firePropertyChanges(
- const css::uno::Sequence< sal_Int32 >& _rHandles,
- const css::uno::Sequence< css::uno::Any >& _rOldValues,
- const css::uno::Sequence< css::uno::Any >& _rNewValues,
- LockAccess
- );
inline ::osl::Mutex&
getInstanceMutex() { return m_aMutex; }
diff --git a/forms/source/inc/frm_resource.hxx b/forms/source/inc/frm_resource.hxx
index 78ffa55..6597893 100644
--- a/forms/source/inc/frm_resource.hxx
+++ b/forms/source/inc/frm_resource.hxx
@@ -35,7 +35,7 @@ namespace frm
static SimpleResMgr* m_pImpl;
private:
// no instantiation allowed
- ResourceManager() { }
+ ResourceManager() = delete;
~ResourceManager() { }
// we'll instantiate one static member of the following class, which, in its dtor,
diff --git a/forms/source/inc/property.hxx b/forms/source/inc/property.hxx
index daf86db..062e321 100644
--- a/forms/source/inc/property.hxx
+++ b/forms/source/inc/property.hxx
@@ -50,7 +50,7 @@ class PropertyInfoService
static PropertyMap s_AllKnownProperties;
public:
- PropertyInfoService() { }
+ PropertyInfoService() = delete;
static sal_Int32 getPropertyId(const OUString& _rName);
diff --git a/formula/source/core/api/token.cxx b/formula/source/core/api/token.cxx
index caa60fd..8cbceb3 100644
--- a/formula/source/core/api/token.cxx
+++ b/formula/source/core/api/token.cxx
@@ -1758,23 +1758,6 @@ bool FormulaMissingToken::operator==( const FormulaToken& r ) const
}
-FormulaSubroutineToken::FormulaSubroutineToken( const FormulaSubroutineToken& r ) :
- FormulaToken( r ),
- mpArray( r.mpArray->Clone())
-{
-}
-FormulaSubroutineToken::~FormulaSubroutineToken()
-{
- delete mpArray;
-}
-bool FormulaSubroutineToken::operator==( const FormulaToken& r ) const
-{
- // Arrays don't equal..
- return FormulaToken::operator==( r ) &&
- (mpArray == static_cast<const FormulaSubroutineToken&>(r).mpArray);
-}
-
-
bool FormulaUnknownToken::operator==( const FormulaToken& r ) const
{
return FormulaToken::operator==( r );
diff --git a/formula/source/core/inc/core_resource.hxx b/formula/source/core/inc/core_resource.hxx
index 5c9d499..fbd6aa3 100644
--- a/formula/source/core/inc/core_resource.hxx
+++ b/formula/source/core/inc/core_resource.hxx
@@ -39,7 +39,7 @@ namespace formula
private:
// no instantiation allowed
- ResourceManager() { }
+ ResourceManager() = delete;
~ResourceManager() { }
protected:
diff --git a/framework/inc/classes/filtercache.hxx b/framework/inc/classes/filtercache.hxx
deleted file mode 100644
index 4b7fda2..0000000
--- a/framework/inc/classes/filtercache.hxx
+++ /dev/null
@@ -1,92 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-/*TODO
- - late init
- - order by number!
- - insert default detector and loader as last ones in hashes ... don't hold it as an extra member!
- => CheckedIterator will be obsolete!
- */
-
-#ifndef INCLUDED_FRAMEWORK_INC_CLASSES_FILTERCACHE_HXX
-#define INCLUDED_FRAMEWORK_INC_CLASSES_FILTERCACHE_HXX
-
-#include <classes/filtercachedata.hxx>
-
-#include <general.h>
-#include <queries.h>
-
-#include <com/sun/star/lang/XMultiServiceFactory.hpp>
-#include <com/sun/star/registry/XRegistryKey.hpp>
-#include <com/sun/star/beans/PropertyValue.hpp>
-#include <com/sun/star/container/ElementExistException.hpp>
-#include <com/sun/star/container/NoSuchElementException.hpp>
-
-#include <rtl/ustring.hxx>
-
-#ifdef ENABLE_GENERATEFILTERCACHE
- #include <rtl/ustrbuf.hxx>
-#endif
-
-namespace framework{
-
-/*-************************************************************************************************************
- @short cache for all filter and type information
- @descr Frameloader - and filterfactory need some information about our current registered filters and types.
- For better performance its necessary to cache all needed values.
-
- @devstatus ready to use
- @threadsafe yes
-*//*-*************************************************************************************************************/
-
-class FilterCache
-{
- public:
-
- // public methods
-
- public:
-
- // constructor / destructor
-
- FilterCache( sal_Int32 nVersion = DEFAULT_FILTERCACHE_VERSION,
- ConfigItemMode nMode = DEFAULT_FILTERCACHE_MODE );
-
- /*-****************************************************************************************************
- @short standard destructor to delete instance
- @descr This will clear the cache if last owner release it.
- *//*-*****************************************************************************************************/
-
- virtual ~FilterCache();
-
- // private variables
-
- private:
-
- static sal_Int32 m_nRefCount;
- static sal_Int32 m_nVersion;
- static sal_Int16 m_nMode;
-
-}; // class FilterCache
-
-} // namespace framework
-
-#endif // INCLUDED_FRAMEWORK_INC_CLASSES_FILTERCACHE_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/framework/inc/classes/filtercachedata.hxx b/framework/inc/classes/filtercachedata.hxx
deleted file mode 100644
index 77a87d5..0000000
--- a/framework/inc/classes/filtercachedata.hxx
+++ /dev/null
@@ -1,330 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef INCLUDED_FRAMEWORK_INC_CLASSES_FILTERCACHEDATA_HXX
-#define INCLUDED_FRAMEWORK_INC_CLASSES_FILTERCACHEDATA_HXX
-
-#include <classes/wildcard.hxx>
-#include <classes/converter.hxx>
-#include <macros/xinterface.hxx>
-#include <general.h>
-
-#include <com/sun/star/beans/PropertyValue.hpp>
-#include <com/sun/star/lang/XMultiServiceFactory.hpp>
-#include <com/sun/star/util/XChangesListener.hpp>
-#include <com/sun/star/util/XChangesNotifier.hpp>
-
-#include <unotools/configitem.hxx>
-#include <cppuhelper/weak.hxx>
-#include <rtl/ustring.hxx>
-
-#include <iterator>
-#include <unordered_map>
-#include <vector>
-
-namespace framework{
-
-#define DEFAULT_FILTERCACHE_VERSION 6 /// these implmentation of FilterCache support different version of TypeDetection.xml! This define the current set default one.
-
-#define DEFAULT_FILTERCACHE_MODE ConfigItemMode::DelayedUpdate | ConfigItemMode::AllLocales /// ConfigItems could run in different modes: supported values are ... { ConfigItemMode::ImmediateUpdate, ConfigItemMode::DelayedUpdate, ConfigItemMode::AllLocales }
-
-enum EModifyState
-{
- E_UNTOUCHED ,
- E_ADDED ,
- E_CHANGED ,
- E_REMOVED
-};
-
-enum EFilterPackage
-{
- E_STANDARD ,
- E_ADDITIONAL
-};
-
-// These struct define a type, which present the type of a file.
-// He is used for easy filter detection without file stream detection!
-// The internal name is the keyname of an item with these structure in our hash map or our configuration set!
-
-struct FileType
-{
-
- // public methods
-
- public:
-
- inline FileType ( ) { impl_clear(); }
- inline FileType ( const FileType& rCopy ) { impl_copy( rCopy ); }
- inline ~FileType ( ) { impl_clear(); }
- inline FileType& operator= ( const FileType& rCopy ) { return impl_copy( rCopy ); }
-
- private:
-
- inline void impl_clear()
- {
- bPreferred = false;
- sName.clear();
- sMediaType.clear();
- sClipboardFormat.clear();
- nDocumentIconID = 0;
- lUINames.clear();
- lURLPattern.clear();
- lExtensions.clear();
- }
-
- inline FileType& impl_copy( const FileType& rCopy )
- {
- bPreferred = rCopy.bPreferred;
- sName = rCopy.sName;
- lUINames = rCopy.lUINames;
- sMediaType = rCopy.sMediaType;
- sClipboardFormat = rCopy.sClipboardFormat;
- nDocumentIconID = rCopy.nDocumentIconID;
- lURLPattern = rCopy.lURLPattern;
- lExtensions = rCopy.lExtensions;
- return (*this);
- }
-
- // public member
-
- public:
-
- bool bPreferred;
- OUString sName;
- OUStringHashMap lUINames;
- OUString sMediaType;
- OUString sClipboardFormat;
- sal_Int32 nDocumentIconID;
- std::vector<OUString> lURLPattern;
- std::vector<OUString> lExtensions;
-};
-
-// These struct describe a filter which is registered for one type.
-// He hold information about services which present the document himself (like a item) and a filter service which
-// filter a file in these document.
-// The internal name is the keyname of an item with these structure in our hash map or our configuration set!
-
-struct Filter
-{
-
- // public methods
-
- public:
-
- inline Filter ( ) { impl_clear(); }
- inline Filter ( const Filter& rCopy ) { impl_copy( rCopy ); }
- inline ~Filter ( ) { impl_clear(); }
- inline Filter& operator= ( const Filter& rCopy ) { return impl_copy( rCopy ); }
-
- private:
-
- inline void impl_clear()
- {
- nOrder = 0;
- sName.clear();
- sType.clear();
- sDocumentService.clear();
- sFilterService.clear();
- sUIComponent.clear();
- nFlags = 0;
- nFileFormatVersion = 0;
- sTemplateName.clear();
- lUINames.clear();
- lUserData.clear();
- }
-
- inline Filter& impl_copy( const Filter& rCopy )
- {
- nOrder = rCopy.nOrder;
- sName = rCopy.sName;
- sType = rCopy.sType;
- lUINames = rCopy.lUINames;
- sDocumentService = rCopy.sDocumentService;
- sFilterService = rCopy.sFilterService;
- sUIComponent = rCopy.sUIComponent;
- nFlags = rCopy.nFlags;
- nFileFormatVersion = rCopy.nFileFormatVersion;
- sTemplateName = rCopy.sTemplateName;
- lUserData = rCopy.lUserData;
- return (*this);
- }
-
- // public member
-
- public:
-
- sal_Int32 nOrder;
- OUString sName;
- OUString sType;
- OUStringHashMap lUINames;
- OUString sDocumentService;
- OUString sFilterService;
- OUString sUIComponent;
- sal_Int32 nFlags;
- std::vector<OUString> lUserData;
- sal_Int32 nFileFormatVersion;
- OUString sTemplateName;
-};
-
-// Programmer can register his own services for an content detection of different types.
-// The implementation or service name of these is the keyname of an item with these structure
-// in our hash map or our configuration set!
-
-struct Detector
-{
-
- // public methods
-
- public:
-
- inline Detector ( ) { impl_clear(); }
- inline Detector ( const Detector& rCopy ) { impl_copy( rCopy ); }
- inline ~Detector ( ) { impl_clear(); }
- inline Detector& operator= ( const Detector& rCopy ) { return impl_copy( rCopy ); }
-
- private:
-
- inline void impl_clear()
- {
- sName.clear();
- lTypes.clear();
- }
-
- inline Detector& impl_copy( const Detector& rCopy )
- {
- sName = rCopy.sName;
- lTypes = rCopy.lTypes;
- return (*this);
- }
-
- // public member
-
- public:
-
- OUString sName;
- std::vector<OUString> lTypes;
-};
-
-// Programmer can register his own services for loading documents in a frame.
-// The implementation or service name of these is the keyname of an item with these structure
-// in our hash map or our configuration set!
-
-struct Loader
-{
-
- // public methods
-
- public:
-
- inline Loader ( ) { impl_clear(); }
- inline Loader ( const Loader& rCopy ) { impl_copy( rCopy ); }
- inline ~Loader ( ) { impl_clear(); }
- inline Loader& operator= ( const Loader& rCopy ) { return impl_copy( rCopy ); }
-
- private:
-
- inline void impl_clear()
- {
- sName.clear();
- lUINames.clear();
- lTypes.clear();
- }
-
- inline Loader& impl_copy( const Loader& rCopy )
- {
- sName = rCopy.sName;
- lUINames = rCopy.lUINames;
- lTypes = rCopy.lTypes;
- return (*this);
- }
-
- // public member
-
- public:
-
- OUString sName;
- OUStringHashMap lUINames;
- std::vector<OUString> lTypes;
-};
-
-// Programmer can register his own services to handle a FileType and intercept dispatches.
-// Don't forget: It's not a FrameLoader - it's a ContentHandler! (normally without any UI)
-
-struct ContentHandler
-{
-
- // public methods
-
- public:
-
- inline ContentHandler( ) { impl_clear(); }
- inline ContentHandler( const ContentHandler& rCopy ) { impl_copy( rCopy ); }
- inline ~ContentHandler( ) { impl_clear(); }
- inline ContentHandler& operator= ( const ContentHandler& rCopy ) { return impl_copy( rCopy ); }
-
- private:
-
- inline void impl_clear()
- {
- sName.clear();
- lTypes.clear();
- }
-
- inline ContentHandler& impl_copy( const ContentHandler& rCopy )
- {
- sName = rCopy.sName;
- lTypes = rCopy.lTypes;
- return (*this);
- }
-
- // public member
-
- public:
-
- OUString sName;
- std::vector<OUString> lTypes;
-};
-
-// We need different hash maps for different tables of our configuration management.
-// Follow maps convert <names> to <properties> of type, filter, detector, loader ...
-// and could be used in a generic way
-
-template< class HashType >
-class SetNodeHash : public std::unordered_map< OUString ,
- HashType ,
- OUStringHash >
-{
-};
-
-// Use these hashes to implement different tables which assign types to frame loader or detect services.
-// It's an optimism to find registered services faster!
-// The preferred hash maps file extensions to preferred types to find these ones faster.
-
-class PerformanceHash : public std::unordered_map< OUString,
- std::vector<OUString>,
- OUStringHash >
-{
-};
-
-
-} // namespace framework
-
-#endif // INCLUDED_FRAMEWORK_INC_CLASSES_FILTERCACHEDATA_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/framework/inc/classes/wildcard.hxx b/framework/inc/classes/wildcard.hxx
deleted file mode 100644
index e9ced16..0000000
--- a/framework/inc/classes/wildcard.hxx
+++ /dev/null
@@ -1,65 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef INCLUDED_FRAMEWORK_INC_CLASSES_WILDCARD_HXX
-#define INCLUDED_FRAMEWORK_INC_CLASSES_WILDCARD_HXX
-
-#include <rtl/ustring.hxx>
-
-namespace framework{
-
-/*-************************************************************************************************************
- @short implement wildcard-mechanism for unicode
- @descr This class can be used to get information about the matching of a pattern to a given text.
- It's suitable for 8-Bit- AND 16-Bit-strings!
- @ATTENTION This class isn't threadsafe!
-
- @devstatus deprecated
-*//*-*************************************************************************************************************/
-
-class Wildcard
-{
-
- // public methods
-
- public:
-
- // constructor / destructor
-
- /*-****************************************************************************************************
- @short standard ctor
- @descr We do nothing here.
- *//*-*****************************************************************************************************/
-
- Wildcard();
-
- /*-****************************************************************************************************
- @short standard dtor
- @descr We do nothing here.
- *//*-*****************************************************************************************************/
-
- virtual ~Wildcard();
-
-}; // class Wildcard
-
-} // namespace framework
-
-#endif // INCLUDED_FRAMEWORK_INC_CLASSES_WILDCARD_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/framework/inc/helper/mischelper.hxx b/framework/inc/helper/mischelper.hxx
index 6be2306..39cae9c 100644
--- a/framework/inc/helper/mischelper.hxx
+++ b/framework/inc/helper/mischelper.hxx
@@ -234,33 +234,6 @@ class WeakChangesListener : public ::cppu::WeakImplHelper<css::util::XChangesLis
}
};
-class WeakEventListener : public ::cppu::WeakImplHelper<css::lang::XEventListener>
-{
- private:
- css::uno::WeakReference<css::lang::XEventListener> mxOwner;
-
- public:
- WeakEventListener(css::uno::Reference<css::lang::XEventListener> xOwner)
- : mxOwner(xOwner)
- {
- }
-
- virtual ~WeakEventListener()
- {
- }
-
- // lang.XEventListener
- virtual void SAL_CALL disposing(const css::lang::EventObject& rEvent)
- throw(css::uno::RuntimeException, std::exception) override
- {
- css::uno::Reference<css::lang::XEventListener> xOwner(mxOwner.get(),
- css::uno::UNO_QUERY);
- if (xOwner.is())
- xOwner->disposing(rEvent);
-
- }
-};
-
class WeakDocumentEventListener : public ::cppu::WeakImplHelper<css::document::XDocumentEventListener>
{
private:
diff --git a/framework/inc/queries.h b/framework/inc/queries.h
deleted file mode 100644
index 153cbc0..0000000
--- a/framework/inc/queries.h
+++ /dev/null
@@ -1,301 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef INCLUDED_FRAMEWORK_INC_QUERIES_H
-#define INCLUDED_FRAMEWORK_INC_QUERIES_H
-
-#include "general.h"
-
-#include <rtl/ustring.hxx>
-#include <rtl/ustrbuf.hxx>
-
-namespace framework{
-
-/*-************************************************************************************************************
- @short These values describe our supported queries for type, filter ... properties.
- They are used by our FilterFactory or our TypeDetection to return
- subsets of our cached configuration.
-*//*-*************************************************************************************************************/
-#define BASE_QUERY_ALL "_query_all"
-#define BASE_QUERY_WRITER "_query_Writer"
-#define BASE_QUERY_WEB "_query_web"
-#define BASE_QUERY_GLOBAL "_query_global"
-#define BASE_QUERY_CHART "_query_chart"
-#define BASE_QUERY_CALC "_query_calc"
-#define BASE_QUERY_IMPRESS "_query_impress"
-#define BASE_QUERY_DRAW "_query_draw"
-#define BASE_QUERY_MATH "_query_math"
-#define BASE_QUERY_GRAPHICS "_query_graphics"
-
-/*-************************************************************************************************************
- @short These parameters can be used in combination with BASE_QUERY_... defines to
- specialize it.
- use follow syntax to do so: "<query>[:<param>[=<value>]]"
- e.g.: "_query_writer:default_first:use_order:sort_prop=uiname"
-
- argument description default
- -----------------------------------------------------------------------------------------------
- iflags=<mask> include filters by given mask 0
- eflags=<mask> exclude filters by given mask 0
- sort_prop=<[name,uiname]> sort by internal name or uiname name
- descending sort descending false
- use_order use order flag of filters for sorting false
- default_first set default filter on top of return list false
- case_sensitive compare "sort_prop" case sensitive false
-*//*-*************************************************************************************************************/
-#define SEPARATOR_QUERYPARAM ((sal_Unicode)':')
-#define SEPARATOR_QUERYPARAMVALUE ((sal_Unicode)'=')
-
-#define QUERYPARAM_IFLAGS "iflags"
-#define QUERYPARAM_EFLAGS "eflags"
-#define QUERYPARAM_SORT_PROP "sort_prop"
-
-#define QUERYPARAM_DESCENDING "descending"
-#define QUERYPARAM_USE_ORDER "use_order"
-#define QUERYPARAM_DEFAULT_FIRST "default_first"
-#define QUERYPARAM_CASE_SENSITIVE "case_sensitive"
-
-#define QUERYPARAMVALUE_SORT_PROP_NAME "name"
-#define QUERYPARAMVALUE_SORT_PROP_UINAME "uiname"
-
-/*-************************************************************************************************************
- @short Helper class to support easy building of a query statements.
-*//*-*************************************************************************************************************/
-class QueryBuilder
-{
- public:
-
- // start with empty query
-
- QueryBuilder()
- {
- resetAll();
- }
-
- // forget all setted params and start with empty ones
- // Attention: base of query isn't changed!
-
- void resetParams()
- {
- m_sParams.makeStringAndClear();
- m_sParams.ensureCapacity( 256 );
- }
-
- // start with new empty query
-
- void resetAll()
- {
- m_sBase.clear();
- resetParams();
- }
-
- private:
- OUString m_sBase;
- OUStringBuffer m_sParams;
-
-}; // class QueryBuilder
-
-/*-************************************************************************************************************
- @short Helper class to analyze queries and split into his different parts (base, params and values).
-*//*-*************************************************************************************************************/
-class QueryAnalyzer
-{
- public:
-
- // it's will not perform to compare strings as query type ...
- // so we convert it into these enum values.
- // default = E_ALL!
-
- enum EQuery
- {
- E_ALL ,
- E_WRITER ,
- E_WEB ,
- E_GLOBAL ,
- E_CHART ,
- E_CALC ,
- E_IMPRESS ,
- E_DRAW ,
- E_MATH ,
- E_GRAPHICS
- };
-
- // these are valid values for param "sort_prop".
- // other ones are not supported!
- // default = E_NAME
-
- enum ESortProp
- {
- E_NAME ,
- E_UINAME
- };
-
- // analyze given query and split it into his different parts; <base>:<param1>:<param2=value>...
-
- QueryAnalyzer(const OUString& sQuery)
- // Don't forget to set default values for non given params!
- : m_eQuery ( E_ALL ) // return ALL filter ...
- , m_nIFlags ( 0 ) // which has set ANY flag ... (we remove all entries which match with these mask .. => 0!)
- , m_nEFlags ( 0 ) // (only used, if nIFlags==0 and himself!=0!)
- , m_eSortProp ( E_NAME ) // sort it by internal name ...
- , m_bDescending ( sal_False ) // in ascending order ...
- , m_bCaseSensitive( sal_False ) // ignore case ...
- , m_bUseOrder ( sal_False ) // don't use order flag ...
- , m_bDefaultFirst ( sal_False ) // and don't handle default entries in special case!
- {
- // Translate old query format to new one first!
- OUString sNewQuery( sQuery );
- if (sQuery == "_filterquery_textdocument_withdefault")
- sNewQuery = "_query_writer:default_first:use_order:sort_prop=uiname";
- else if (sQuery == "_filterquery_webdocument_withdefault")
- sNewQuery = "_query_web:default_first:use_order:sort_prop=uiname";
- else if (sQuery == "_filterquery_globaldocument_withdefault")
- sNewQuery = "_query_global:default_first:use_order:sort_prop=uiname";
- else if (sQuery == "_filterquery_chartdocument_withdefault")
- sNewQuery = "_query_chart:default_first:use_order:sort_prop=uiname";
- else if (sQuery == "_filterquery_spreadsheetdocument_withdefault")
- sNewQuery = "_query_calc:default_first:use_order:sort_prop=uiname";
- else if (sQuery == "_filterquery_presentationdocument_withdefault")
- sNewQuery = "_query_impress:default_first:use_order:sort_prop=uiname";
- else if (sQuery == "_filterquery_drawingdocument_withdefault")
- sNewQuery = "_query_draw:default_first:use_order:sort_prop=uiname";
- else if (sQuery == "_filterquery_formulaproperties_withdefault")
- sNewQuery = "_query_math:default_first:use_order:sort_prop=uiname";
- else if (sQuery == "_filterquery_textdocument")
- sNewQuery = "_query_writer:use_order:sort_prop=uiname";
- else if (sQuery == "_filterquery_webdocument")
- sNewQuery = "_query_web:use_order:sort_prop=uiname";
- else if (sQuery == "_filterquery_globaldocument")
- sNewQuery = "_query_global:use_order:sort_prop=uiname";
- else if (sQuery == "_filterquery_chartdocument")
- sNewQuery = "_query_chart:use_order:sort_prop=uiname";
- else if (sQuery == "_filterquery_spreadsheetdocument")
- sNewQuery = "_query_calc:use_order:sort_prop=uiname";
- else if (sQuery == "_filterquery_presentationdocument")
- sNewQuery = "_query_impress:use_order:sort_prop=uiname";
- else if (sQuery == "_filterquery_drawingdocument")
... etc. - the rest is truncated
More information about the Libreoffice-commits
mailing list