diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-08-23 10:57:32 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-08-23 10:57:32 +0200 |
commit | ff28315af105b1ec934a9b7181fadda8face3697 (patch) | |
tree | 6f6241d3a1ce7339daa1e353f65dcf6f46269e70 | |
parent | 690a1aa9dcf8ce98ec7f96a5980b571566152865 (diff) |
Remaining clang-tidy misc-move-constructor-init
...by turning the relevant ctor parameters into "const &" (following
8f30da6386fa414b9fe4c704b294a978df77347b "Some clang-tidy
misc-move-constructor-init").
Change-Id: I6686dabe2f05156d6ecd49aa76a3a1166ccac045
34 files changed, 46 insertions, 46 deletions
diff --git a/basctl/source/dlged/managelang.cxx b/basctl/source/dlged/managelang.cxx index 56c0e8c67384..0716056fb000 100644 --- a/basctl/source/dlged/managelang.cxx +++ b/basctl/source/dlged/managelang.cxx @@ -55,7 +55,7 @@ bool localesAreEqual( const Locale& rLocaleLeft, const Locale& rLocaleRight ) return bRet; } -ManageLanguageDialog::ManageLanguageDialog(vcl::Window* pParent, std::shared_ptr<LocalizationMgr> xLMgr) +ManageLanguageDialog::ManageLanguageDialog(vcl::Window* pParent, std::shared_ptr<LocalizationMgr> const & xLMgr) : ModalDialog(pParent, "ManageLanguagesDialog", "modules/BasicIDE/ui/managelanguages.ui") , m_xLocalizationMgr(xLMgr) , m_sDefLangStr(IDE_RESSTR(RID_STR_DEF_LANG)) @@ -228,7 +228,7 @@ IMPL_LINK_NOARG_TYPED(ManageLanguageDialog, SelectHdl, ListBox&, void) // class SetDefaultLanguageDialog ----------------------------------------------- -SetDefaultLanguageDialog::SetDefaultLanguageDialog(vcl::Window* pParent, std::shared_ptr<LocalizationMgr> xLMgr) +SetDefaultLanguageDialog::SetDefaultLanguageDialog(vcl::Window* pParent, std::shared_ptr<LocalizationMgr> const & xLMgr) : ModalDialog(pParent, "DefaultLanguageDialog", "modules/BasicIDE/ui/defaultlanguage.ui") , m_pCheckLangLB(nullptr) , m_xLocalizationMgr(xLMgr) diff --git a/basctl/source/inc/managelang.hxx b/basctl/source/inc/managelang.hxx index 14bf40347894..baf7c4f4f091 100644 --- a/basctl/source/inc/managelang.hxx +++ b/basctl/source/inc/managelang.hxx @@ -69,7 +69,7 @@ private: DECL_LINK_TYPED(SelectHdl, ListBox&, void); public: - ManageLanguageDialog( vcl::Window* pParent, std::shared_ptr<LocalizationMgr> _pLMgr ); + ManageLanguageDialog( vcl::Window* pParent, std::shared_ptr<LocalizationMgr> const & _pLMgr ); virtual ~ManageLanguageDialog(); virtual void dispose() override; }; @@ -89,7 +89,7 @@ private: void FillLanguageBox(); public: - SetDefaultLanguageDialog(vcl::Window* pParent, std::shared_ptr<LocalizationMgr> xLMgr); + SetDefaultLanguageDialog(vcl::Window* pParent, std::shared_ptr<LocalizationMgr> const & xLMgr); virtual ~SetDefaultLanguageDialog(); virtual void dispose() override; diff --git a/sc/inc/linkuno.hxx b/sc/inc/linkuno.hxx index 3145dd4c8a16..da892143069f 100644 --- a/sc/inc/linkuno.hxx +++ b/sc/inc/linkuno.hxx @@ -474,7 +474,7 @@ public: class ScExternalSheetCacheObj : public cppu::WeakImplHelper< css::sheet::XExternalSheetCache > { public: - explicit ScExternalSheetCacheObj(ScDocShell* pDocShell, ScExternalRefCache::TableTypeRef pTable, size_t nIndex); + explicit ScExternalSheetCacheObj(ScDocShell* pDocShell, ScExternalRefCache::TableTypeRef const & pTable, size_t nIndex); virtual ~ScExternalSheetCacheObj(); // XExternalSheetCache diff --git a/sc/inc/textuno.hxx b/sc/inc/textuno.hxx index a2ed46ec44a6..d70f17f26426 100644 --- a/sc/inc/textuno.hxx +++ b/sc/inc/textuno.hxx @@ -120,7 +120,7 @@ public: ScHeaderFooterTextData(const ScHeaderFooterTextData&) = delete; const ScHeaderFooterTextData& operator=(const ScHeaderFooterTextData&) = delete; ScHeaderFooterTextData( - css::uno::WeakReference<css::sheet::XHeaderFooterContent> xContent, ScHeaderFooterPart nP, const EditTextObject* pTextObj); + css::uno::WeakReference<css::sheet::XHeaderFooterContent> const & xContent, ScHeaderFooterPart nP, const EditTextObject* pTextObj); ~ScHeaderFooterTextData(); // helper functions diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx index 8808b7fe1ee4..5e19a6c6a32a 100644 --- a/sc/source/core/tool/scmatrix.cxx +++ b/sc/source/core/tool/scmatrix.cxx @@ -2053,7 +2053,7 @@ private: public: - wrapped_iterator(typename T::const_iterator it_, U aOp): + wrapped_iterator(typename T::const_iterator const & it_, U const & aOp): it(it_), val(value_type()), maOp(aOp) @@ -2118,7 +2118,7 @@ private: typename T::const_iterator m_itEnd; U maOp; public: - MatrixIteratorWrapper(typename T::const_iterator itBegin, typename T::const_iterator itEnd, U aOp): + MatrixIteratorWrapper(typename T::const_iterator const & itBegin, typename T::const_iterator const & itEnd, U const & aOp): m_itBegin(itBegin), m_itEnd(itEnd), maOp(aOp) @@ -2170,7 +2170,7 @@ private: T maOp; public: - MatrixOpWrapper(MatrixImplType& rMat, T aOp): + MatrixOpWrapper(MatrixImplType& rMat, T const & aOp): mrMat(rMat), pos(rMat.position(0,0)), maOp(aOp) @@ -2253,10 +2253,10 @@ class WalkElementBlockOperation public: WalkElementBlockOperation(size_t nRowSize, size_t /*nColSize*/, - ScFullMatrix::DoubleOpFunction aDoubleFunc, - ScFullMatrix::BoolOpFunction aBoolFunc, - ScFullMatrix::StringOpFunction aStringFunc, - ScFullMatrix::EmptyOpFunction aEmptyFunc): + ScFullMatrix::DoubleOpFunction const & aDoubleFunc, + ScFullMatrix::BoolOpFunction const & aBoolFunc, + ScFullMatrix::StringOpFunction const & aStringFunc, + ScFullMatrix::EmptyOpFunction const & aEmptyFunc): mnRowSize(nRowSize), mnRowPos(0), mnColPos(0), diff --git a/sc/source/filter/excel/xelink.cxx b/sc/source/filter/excel/xelink.cxx index 54ae5516ce9f..7918d4679a02 100644 --- a/sc/source/filter/excel/xelink.cxx +++ b/sc/source/filter/excel/xelink.cxx @@ -193,7 +193,7 @@ class XclExpXct : public XclExpRecordBase, protected XclExpRoot public: explicit XclExpXct( const XclExpRoot& rRoot, const OUString& rTabName, sal_uInt16 nSBTab, - ScExternalRefCache::TableTypeRef xCacheTable ); + ScExternalRefCache::TableTypeRef const & xCacheTable ); /** Returns the external sheet name. */ inline const XclExpString& GetTabName() const { return maTabName; } @@ -1276,7 +1276,7 @@ void XclExpCrn::SaveXml( XclExpXmlStream& rStrm ) // Cached cells of a sheet ==================================================== XclExpXct::XclExpXct( const XclExpRoot& rRoot, const OUString& rTabName, - sal_uInt16 nSBTab, ScExternalRefCache::TableTypeRef xCacheTable ) : + sal_uInt16 nSBTab, ScExternalRefCache::TableTypeRef const & xCacheTable ) : XclExpRoot( rRoot ), mxCacheTable( xCacheTable ), maBoundRange( ScAddress::INITIALIZE_INVALID ), diff --git a/sc/source/filter/excel/xlroot.cxx b/sc/source/filter/excel/xlroot.cxx index 55998aae9b2d..a1d9a20cd703 100644 --- a/sc/source/filter/excel/xlroot.cxx +++ b/sc/source/filter/excel/xlroot.cxx @@ -73,7 +73,7 @@ XclDebugObjCounter::~XclDebugObjCounter() #endif XclRootData::XclRootData( XclBiff eBiff, SfxMedium& rMedium, - tools::SvRef<SotStorage> xRootStrg, ScDocument& rDoc, rtl_TextEncoding eTextEnc, bool bExport ) : + tools::SvRef<SotStorage> const & xRootStrg, ScDocument& rDoc, rtl_TextEncoding eTextEnc, bool bExport ) : meBiff( eBiff ), meOutput( EXC_OUTPUT_BINARY ), mrMedium( rMedium ), diff --git a/sc/source/filter/inc/condformatcontext.hxx b/sc/source/filter/inc/condformatcontext.hxx index 866ba271d3d5..ca42898cc8ff 100644 --- a/sc/source/filter/inc/condformatcontext.hxx +++ b/sc/source/filter/inc/condformatcontext.hxx @@ -33,7 +33,7 @@ class CondFormatContext; class ColorScaleContext : public WorksheetContextBase { public: - explicit ColorScaleContext( CondFormatContext& rFragment, CondFormatRuleRef xRule ); + explicit ColorScaleContext( CondFormatContext& rFragment, CondFormatRuleRef const & xRule ); virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override; virtual void onStartElement( const AttributeList& rAttribs ) override; @@ -45,7 +45,7 @@ private: class DataBarContext : public WorksheetContextBase { public: - explicit DataBarContext( CondFormatContext& rFormat, CondFormatRuleRef xRule ); + explicit DataBarContext( CondFormatContext& rFormat, CondFormatRuleRef const & xRule ); virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs ) override; virtual void onStartElement( const AttributeList& rAttribs ) override; diff --git a/sc/source/filter/inc/xlroot.hxx b/sc/source/filter/inc/xlroot.hxx index 3e8f1ce5a2f9..f90598f14ab4 100644 --- a/sc/source/filter/inc/xlroot.hxx +++ b/sc/source/filter/inc/xlroot.hxx @@ -112,7 +112,7 @@ struct XclRootData const bool mbExport; /// false = Import, true = Export. explicit XclRootData( XclBiff eBiff, SfxMedium& rMedium, - tools::SvRef<SotStorage> xRootStrg, ScDocument& rDoc, + tools::SvRef<SotStorage> const & xRootStrg, ScDocument& rDoc, rtl_TextEncoding eTextEnc, bool bExport ); virtual ~XclRootData(); }; diff --git a/sc/source/filter/oox/condformatcontext.cxx b/sc/source/filter/oox/condformatcontext.cxx index 638e5bedcee7..79c92d2a4d07 100644 --- a/sc/source/filter/oox/condformatcontext.cxx +++ b/sc/source/filter/oox/condformatcontext.cxx @@ -29,7 +29,7 @@ namespace xls { using ::oox::core::ContextHandlerRef; -ColorScaleContext::ColorScaleContext( CondFormatContext& rFragment, CondFormatRuleRef xRule ) : +ColorScaleContext::ColorScaleContext( CondFormatContext& rFragment, CondFormatRuleRef const & xRule ) : WorksheetContextBase( rFragment ), mxRule( xRule ) { @@ -65,7 +65,7 @@ void ColorScaleContext::onStartElement( const AttributeList& rAttribs ) } } -DataBarContext::DataBarContext( CondFormatContext& rFragment, CondFormatRuleRef xRule ) : +DataBarContext::DataBarContext( CondFormatContext& rFragment, CondFormatRuleRef const & xRule ) : WorksheetContextBase( rFragment ), mxRule( xRule ) { diff --git a/sc/source/ui/unoobj/linkuno.cxx b/sc/source/ui/unoobj/linkuno.cxx index 85e19f468784..10d51f738bac 100644 --- a/sc/source/ui/unoobj/linkuno.cxx +++ b/sc/source/ui/unoobj/linkuno.cxx @@ -1430,7 +1430,7 @@ uno::Reference< sheet::XDDELink > ScDDELinksObj::addDDELink( return xLink; } -ScExternalSheetCacheObj::ScExternalSheetCacheObj(ScDocShell* pDocShell, ScExternalRefCache::TableTypeRef pTable, size_t nIndex) : +ScExternalSheetCacheObj::ScExternalSheetCacheObj(ScDocShell* pDocShell, ScExternalRefCache::TableTypeRef const & pTable, size_t nIndex) : mpDocShell(pDocShell), mpTable(pTable), mnIndex(nIndex) diff --git a/sc/source/ui/unoobj/textuno.cxx b/sc/source/ui/unoobj/textuno.cxx index 803e7d9247bd..77380f65e280 100644 --- a/sc/source/ui/unoobj/textuno.cxx +++ b/sc/source/ui/unoobj/textuno.cxx @@ -184,7 +184,7 @@ void ScHeaderFooterContentObj::Init( const EditTextObject* pLeft, } ScHeaderFooterTextData::ScHeaderFooterTextData( - uno::WeakReference<sheet::XHeaderFooterContent> xContent, ScHeaderFooterPart nP, const EditTextObject* pTextObj) : + uno::WeakReference<sheet::XHeaderFooterContent> const & xContent, ScHeaderFooterPart nP, const EditTextObject* pTextObj) : mpTextObj(pTextObj ? pTextObj->Clone() : nullptr), xContentObj( xContent ), nPart( nP ), diff --git a/svx/source/tbxctrls/colorwindow.hxx b/svx/source/tbxctrls/colorwindow.hxx index c2ffb56846e4..185872e55c3c 100644 --- a/svx/source/tbxctrls/colorwindow.hxx +++ b/svx/source/tbxctrls/colorwindow.hxx @@ -70,7 +70,7 @@ public: const css::uno::Reference< css::frame::XFrame >& rFrame, const OUString& rWndTitle, vcl::Window* pParentWindow, - std::function<void(const OUString&, const Color&)> maColorSelectFunction); + std::function<void(const OUString&, const Color&)> const & maColorSelectFunction); virtual ~SvxColorWindow_Impl(); virtual void dispose() override; void StartSelection(); diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index 2dceb15814f4..b8a68b755021 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -1253,7 +1253,7 @@ SvxColorWindow_Impl::SvxColorWindow_Impl( const OUString& rCommand, const Reference< XFrame >& rFrame, const OUString& rWndTitle, vcl::Window* pParentWindow, - std::function<void(const OUString&, const Color&)> aFunction): + std::function<void(const OUString&, const Color&)> const & aFunction): SfxPopupWindow( nSlotId, pParentWindow, "palette_popup_window", "svx/ui/colorwindow.ui", diff --git a/sw/inc/ToxTextGenerator.hxx b/sw/inc/ToxTextGenerator.hxx index bbd4872541be..70155e73b0a9 100644 --- a/sw/inc/ToxTextGenerator.hxx +++ b/sw/inc/ToxTextGenerator.hxx @@ -57,7 +57,7 @@ class ToxTabStopTokenHandler; class ToxTextGenerator { public: - ToxTextGenerator(const SwForm& toxForm, std::shared_ptr<ToxTabStopTokenHandler> tabStopHandler); + ToxTextGenerator(const SwForm& toxForm, std::shared_ptr<ToxTabStopTokenHandler> const & tabStopHandler); virtual ~ToxTextGenerator(); diff --git a/sw/inc/unostyle.hxx b/sw/inc/unostyle.hxx index f20d5945e8e2..57e7b5fe8765 100644 --- a/sw/inc/unostyle.hxx +++ b/sw/inc/unostyle.hxx @@ -209,7 +209,7 @@ private: public: - SwXAutoStyle( SwDoc* pDoc, std::shared_ptr<SfxItemSet> pInitSet, IStyleAccess::SwAutoStyleFamily eFam ); + SwXAutoStyle( SwDoc* pDoc, std::shared_ptr<SfxItemSet> const & pInitSet, IStyleAccess::SwAutoStyleFamily eFam ); virtual ~SwXAutoStyle(); //XPropertySet diff --git a/sw/source/core/inc/UndoManager.hxx b/sw/source/core/inc/UndoManager.hxx index b81dabcfe32a..74ce2b341a60 100644 --- a/sw/source/core/inc/UndoManager.hxx +++ b/sw/source/core/inc/UndoManager.hxx @@ -38,7 +38,7 @@ class UndoManager , public SdrUndoManager { public: - UndoManager(std::shared_ptr<SwNodes> pUndoNodes, + UndoManager(std::shared_ptr<SwNodes> const & pUndoNodes, IDocumentDrawModelAccess & rDrawModelAccess, IDocumentRedlineAccess & rRedlineAccess, IDocumentState & rState); diff --git a/sw/source/core/tox/ToxTextGenerator.cxx b/sw/source/core/tox/ToxTextGenerator.cxx index 185cac4973ca..dade91ce2065 100644 --- a/sw/source/core/tox/ToxTextGenerator.cxx +++ b/sw/source/core/tox/ToxTextGenerator.cxx @@ -96,7 +96,7 @@ ToxTextGenerator::GetNumStringOfFirstNode( const SwTOXSortTabBase& rBase, bool b ToxTextGenerator::ToxTextGenerator(const SwForm& toxForm, - std::shared_ptr<ToxTabStopTokenHandler> tabStopHandler) + std::shared_ptr<ToxTabStopTokenHandler> const & tabStopHandler) : mToxForm(toxForm), mLinkProcessor(new ToxLinkProcessor()), mTabStopTokenHandler(tabStopHandler) diff --git a/sw/source/core/undo/docundo.cxx b/sw/source/core/undo/docundo.cxx index f7bb4d0e776a..e37375cc5e55 100644 --- a/sw/source/core/undo/docundo.cxx +++ b/sw/source/core/undo/docundo.cxx @@ -48,7 +48,7 @@ using namespace ::com::sun::star; namespace sw { -UndoManager::UndoManager(std::shared_ptr<SwNodes> xUndoNodes, +UndoManager::UndoManager(std::shared_ptr<SwNodes> const & xUndoNodes, IDocumentDrawModelAccess & rDrawModelAccess, IDocumentRedlineAccess & rRedlineAccess, IDocumentState & rState) diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx index 7957950f5466..41948a2c3a34 100644 --- a/sw/source/core/unocore/unostyle.cxx +++ b/sw/source/core/unocore/unostyle.cxx @@ -112,7 +112,7 @@ namespace GetCountOrName_t m_fGetCountOrName; CreateStyle_t m_fCreateStyle; TranslateIndex_t m_fTranslateIndex; - StyleFamilyEntry(SfxStyleFamily eFamily, sal_uInt16 nPropMapType, SwGetPoolIdFromName aPoolId, OUString const& sName, sal_uInt32 nResId, GetCountOrName_t fGetCountOrName, CreateStyle_t fCreateStyle, TranslateIndex_t fTranslateIndex) + StyleFamilyEntry(SfxStyleFamily eFamily, sal_uInt16 nPropMapType, SwGetPoolIdFromName aPoolId, OUString const& sName, sal_uInt32 nResId, GetCountOrName_t const & fGetCountOrName, CreateStyle_t const & fCreateStyle, TranslateIndex_t const & fTranslateIndex) : m_eFamily(eFamily) , m_nPropMapType(nPropMapType) , m_xPSInfo(aSwMapProvider.GetPropertySet(nPropMapType)->getPropertySetInfo()) @@ -3849,7 +3849,7 @@ uno::Any SwXAutoStylesEnumerator::nextElement( ) SwXAutoStyle::SwXAutoStyle( SwDoc* pDoc, - std::shared_ptr<SfxItemSet> pInitSet, + std::shared_ptr<SfxItemSet> const & pInitSet, IStyleAccess::SwAutoStyleFamily eFam) : mpSet(pInitSet), meFamily(eFam), diff --git a/sw/source/filter/xml/xmlimpit.cxx b/sw/source/filter/xml/xmlimpit.cxx index fdb911cc80a9..340e1a01713a 100644 --- a/sw/source/filter/xml/xmlimpit.cxx +++ b/sw/source/filter/xml/xmlimpit.cxx @@ -57,7 +57,7 @@ using namespace ::xmloff::token; using uno::Any; SvXMLImportItemMapper::SvXMLImportItemMapper( - SvXMLItemMapEntriesRef rMapEntries, + SvXMLItemMapEntriesRef const & rMapEntries, sal_uInt16 nUnknWhich ) : mrMapEntries( rMapEntries ), nUnknownWhich( nUnknWhich ) diff --git a/sw/source/filter/xml/xmlimpit.hxx b/sw/source/filter/xml/xmlimpit.hxx index 982da02d17fb..92517db9c174 100644 --- a/sw/source/filter/xml/xmlimpit.hxx +++ b/sw/source/filter/xml/xmlimpit.hxx @@ -38,7 +38,7 @@ protected: sal_uInt16 nUnknownWhich; public: - SvXMLImportItemMapper( SvXMLItemMapEntriesRef rMapEntries , + SvXMLImportItemMapper( SvXMLItemMapEntriesRef const & rMapEntries , sal_uInt16 nUnknWhich=USHRT_MAX ); virtual ~SvXMLImportItemMapper(); diff --git a/sw/source/ui/vba/vbalistlevel.cxx b/sw/source/ui/vba/vbalistlevel.cxx index 7b38e7ea5c59..9b7aa4294a5f 100644 --- a/sw/source/ui/vba/vbalistlevel.cxx +++ b/sw/source/ui/vba/vbalistlevel.cxx @@ -28,7 +28,7 @@ using namespace ::ooo::vba; using namespace ::com::sun::star; -SwVbaListLevel::SwVbaListLevel( const uno::Reference< ooo::vba::XHelperInterface >& rParent, const uno::Reference< uno::XComponentContext >& rContext, SwVbaListHelperRef pHelper, sal_Int32 nLevel ) throw ( uno::RuntimeException ) : SwVbaListLevel_BASE( rParent, rContext ), pListHelper( pHelper ), mnLevel( nLevel ) +SwVbaListLevel::SwVbaListLevel( const uno::Reference< ooo::vba::XHelperInterface >& rParent, const uno::Reference< uno::XComponentContext >& rContext, SwVbaListHelperRef const & pHelper, sal_Int32 nLevel ) throw ( uno::RuntimeException ) : SwVbaListLevel_BASE( rParent, rContext ), pListHelper( pHelper ), mnLevel( nLevel ) { } diff --git a/sw/source/ui/vba/vbalistlevel.hxx b/sw/source/ui/vba/vbalistlevel.hxx index aa3f2bccaf32..d2c4aac15746 100644 --- a/sw/source/ui/vba/vbalistlevel.hxx +++ b/sw/source/ui/vba/vbalistlevel.hxx @@ -33,7 +33,7 @@ private: sal_Int32 mnLevel; public: - SwVbaListLevel( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, SwVbaListHelperRef pHelper, sal_Int32 nLevel ) throw ( css::uno::RuntimeException ); + SwVbaListLevel( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, SwVbaListHelperRef const & pHelper, sal_Int32 nLevel ) throw ( css::uno::RuntimeException ); virtual ~SwVbaListLevel(); // Attributes diff --git a/sw/source/ui/vba/vbalistlevels.cxx b/sw/source/ui/vba/vbalistlevels.cxx index 5eecac7abadd..ff4125b3dbd5 100644 --- a/sw/source/ui/vba/vbalistlevels.cxx +++ b/sw/source/ui/vba/vbalistlevels.cxx @@ -42,7 +42,7 @@ public: } }; -SwVbaListLevels::SwVbaListLevels( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext > & xContext, SwVbaListHelperRef pHelper ) throw (uno::RuntimeException) : SwVbaListLevels_BASE( xParent, xContext, uno::Reference< container::XIndexAccess >() ), pListHelper( pHelper ) +SwVbaListLevels::SwVbaListLevels( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext > & xContext, SwVbaListHelperRef const & pHelper ) throw (uno::RuntimeException) : SwVbaListLevels_BASE( xParent, xContext, uno::Reference< container::XIndexAccess >() ), pListHelper( pHelper ) { } diff --git a/sw/source/ui/vba/vbalistlevels.hxx b/sw/source/ui/vba/vbalistlevels.hxx index 2aef24812fc9..c13a17dbe6d7 100644 --- a/sw/source/ui/vba/vbalistlevels.hxx +++ b/sw/source/ui/vba/vbalistlevels.hxx @@ -32,7 +32,7 @@ private: SwVbaListHelperRef pListHelper; public: - SwVbaListLevels( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, SwVbaListHelperRef pHelper ) throw ( css::uno::RuntimeException ); + SwVbaListLevels( const css::uno::Reference< ooo::vba::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, SwVbaListHelperRef const & pHelper ) throw ( css::uno::RuntimeException ); virtual ~SwVbaListLevels() {} virtual ::sal_Int32 SAL_CALL getCount() throw (css::uno::RuntimeException) override; diff --git a/writerfilter/source/dmapper/FormControlHelper.cxx b/writerfilter/source/dmapper/FormControlHelper.cxx index 38899b0175aa..93c3ae0e9360 100644 --- a/writerfilter/source/dmapper/FormControlHelper.cxx +++ b/writerfilter/source/dmapper/FormControlHelper.cxx @@ -130,7 +130,7 @@ uno::Reference<container::XIndexContainer> FormControlHelper::FormControlHelper_ FormControlHelper::FormControlHelper(FieldId eFieldId, uno::Reference<text::XTextDocument> const& xTextDocument, - FFDataHandler::Pointer_t pFFData) + FFDataHandler::Pointer_t const & pFFData) : m_pFFData(pFFData), m_pImpl(new FormControlHelper_Impl) { m_pImpl->m_eFieldId = eFieldId; diff --git a/writerfilter/source/dmapper/FormControlHelper.hxx b/writerfilter/source/dmapper/FormControlHelper.hxx index 1e6b85877097..89e0a1dba6f1 100644 --- a/writerfilter/source/dmapper/FormControlHelper.hxx +++ b/writerfilter/source/dmapper/FormControlHelper.hxx @@ -34,7 +34,7 @@ public: typedef std::shared_ptr<FormControlHelper> Pointer_t; FormControlHelper(FieldId eFieldId, css::uno::Reference<css::text::XTextDocument> const& rTextDocument, - FFDataHandler::Pointer_t pFFData); + FFDataHandler::Pointer_t const & pFFData); ~FormControlHelper(); void insertControl(css::uno::Reference<css::text::XTextRange> const& xTextRange); diff --git a/writerfilter/source/ooxml/OOXMLBinaryObjectReference.cxx b/writerfilter/source/ooxml/OOXMLBinaryObjectReference.cxx index 2df5a17b0ca9..6bcab2d41d62 100644 --- a/writerfilter/source/ooxml/OOXMLBinaryObjectReference.cxx +++ b/writerfilter/source/ooxml/OOXMLBinaryObjectReference.cxx @@ -26,7 +26,7 @@ namespace ooxml using namespace ::com::sun::star; OOXMLBinaryObjectReference::OOXMLBinaryObjectReference -(OOXMLStream::Pointer_t pStream) +(OOXMLStream::Pointer_t const & pStream) : mpStream(pStream), mbRead(false) { } diff --git a/writerfilter/source/ooxml/OOXMLBinaryObjectReference.hxx b/writerfilter/source/ooxml/OOXMLBinaryObjectReference.hxx index d77de2673871..794d700fdc73 100644 --- a/writerfilter/source/ooxml/OOXMLBinaryObjectReference.hxx +++ b/writerfilter/source/ooxml/OOXMLBinaryObjectReference.hxx @@ -36,7 +36,7 @@ class OOXMLBinaryObjectReference : void read(); public: - explicit OOXMLBinaryObjectReference(OOXMLStream::Pointer_t pStream); + explicit OOXMLBinaryObjectReference(OOXMLStream::Pointer_t const & pStream); virtual ~OOXMLBinaryObjectReference(); virtual void resolve(BinaryObj & rHandler) override; diff --git a/writerfilter/source/ooxml/OOXMLDocumentImpl.cxx b/writerfilter/source/ooxml/OOXMLDocumentImpl.cxx index 9ede7431bf6c..6503fbdc3d83 100644 --- a/writerfilter/source/ooxml/OOXMLDocumentImpl.cxx +++ b/writerfilter/source/ooxml/OOXMLDocumentImpl.cxx @@ -50,7 +50,7 @@ namespace writerfilter { namespace ooxml { -OOXMLDocumentImpl::OOXMLDocumentImpl(OOXMLStream::Pointer_t pStream, const uno::Reference<task::XStatusIndicator>& xStatusIndicator, bool bSkipImages, const uno::Sequence<beans::PropertyValue>& rDescriptor) +OOXMLDocumentImpl::OOXMLDocumentImpl(OOXMLStream::Pointer_t const & pStream, const uno::Reference<task::XStatusIndicator>& xStatusIndicator, bool bSkipImages, const uno::Sequence<beans::PropertyValue>& rDescriptor) : mpStream(pStream) , mxStatusIndicator(xStatusIndicator) , mnXNoteId(0) diff --git a/writerfilter/source/ooxml/OOXMLDocumentImpl.hxx b/writerfilter/source/ooxml/OOXMLDocumentImpl.hxx index a0f1fc5b8050..f16be42be8f8 100644 --- a/writerfilter/source/ooxml/OOXMLDocumentImpl.hxx +++ b/writerfilter/source/ooxml/OOXMLDocumentImpl.hxx @@ -93,7 +93,7 @@ protected: void resolveGlossaryStream(Stream & rStream); void resolveEmbeddingsStream(const OOXMLStream::Pointer_t& pStream); public: - OOXMLDocumentImpl(OOXMLStream::Pointer_t pStream, const css::uno::Reference<css::task::XStatusIndicator>& xStatusIndicator, bool bSkipImages, const css::uno::Sequence<css::beans::PropertyValue>& rDescriptor); + OOXMLDocumentImpl(OOXMLStream::Pointer_t const & pStream, const css::uno::Reference<css::task::XStatusIndicator>& xStatusIndicator, bool bSkipImages, const css::uno::Sequence<css::beans::PropertyValue>& rDescriptor); virtual ~OOXMLDocumentImpl(); virtual void resolve(Stream & rStream) override; diff --git a/writerfilter/source/ooxml/OOXMLPropertySet.cxx b/writerfilter/source/ooxml/OOXMLPropertySet.cxx index 8dde53290eef..9a095913e082 100644 --- a/writerfilter/source/ooxml/OOXMLPropertySet.cxx +++ b/writerfilter/source/ooxml/OOXMLPropertySet.cxx @@ -181,7 +181,7 @@ OOXMLValue * OOXMLValue::clone() const class OOXMLBinaryValue */ -OOXMLBinaryValue::OOXMLBinaryValue(OOXMLBinaryObjectReference::Pointer_t +OOXMLBinaryValue::OOXMLBinaryValue(OOXMLBinaryObjectReference::Pointer_t const & pBinaryObj) : mpBinaryObj(pBinaryObj) { diff --git a/writerfilter/source/ooxml/OOXMLPropertySet.hxx b/writerfilter/source/ooxml/OOXMLPropertySet.hxx index f79cb680ff3c..8cc37729a096 100644 --- a/writerfilter/source/ooxml/OOXMLPropertySet.hxx +++ b/writerfilter/source/ooxml/OOXMLPropertySet.hxx @@ -77,7 +77,7 @@ class OOXMLBinaryValue : public OOXMLValue protected: mutable OOXMLBinaryObjectReference::Pointer_t mpBinaryObj; public: - explicit OOXMLBinaryValue(OOXMLBinaryObjectReference::Pointer_t pBinaryObj); + explicit OOXMLBinaryValue(OOXMLBinaryObjectReference::Pointer_t const & pBinaryObj); virtual ~OOXMLBinaryValue(); virtual writerfilter::Reference<BinaryObj>::Pointer_t getBinary() override; |