From 8d54796bf152499ecbe61788be64c9035f725dfa Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 19 May 2014 10:02:29 +0200 Subject: enhance pass-by-ref plugin to detect large arguments Detect arguments larger than 64 chars passed by value. Change-Id: I9b0ea9ccb99d115984a26eab67c9cf6afd5f6cae Signed-off-by: Stephan Bergmann --- sfx2/source/appl/imestatuswindow.hxx | 2 +- sfx2/source/dialog/tabdlg.cxx | 2 +- sfx2/source/sidebar/ResourceManager.cxx | 2 +- sfx2/source/sidebar/ResourceManager.hxx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/appl/imestatuswindow.hxx b/sfx2/source/appl/imestatuswindow.hxx index 7d7428f4cbe2..116812defaee 100644 --- a/sfx2/source/appl/imestatuswindow.hxx +++ b/sfx2/source/appl/imestatuswindow.hxx @@ -89,7 +89,7 @@ public: private: ImeStatusWindow(ImeStatusWindow &); // not implemented - void operator =(ImeStatusWindow); // not implemented + void operator =(const ImeStatusWindow&); // not implemented virtual ~ImeStatusWindow(); diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx index 2f2c6f91d301..7cdc84401841 100644 --- a/sfx2/source/dialog/tabdlg.cxx +++ b/sfx2/source/dialog/tabdlg.cxx @@ -321,7 +321,7 @@ const SfxPoolItem* SfxTabPage::GetOldItem( const SfxItemSet& rSet, return pItem; } -void SfxTabPage::PageCreated( SfxAllItemSet /*aSet*/ ) +void SfxTabPage::PageCreated( const SfxAllItemSet& /*aSet*/ ) { DBG_ASSERT(false, "SfxTabPage::PageCreated should not be called"); } diff --git a/sfx2/source/sidebar/ResourceManager.cxx b/sfx2/source/sidebar/ResourceManager.cxx index 2df3af1bbf1e..53fa381747d5 100644 --- a/sfx2/source/sidebar/ResourceManager.cxx +++ b/sfx2/source/sidebar/ResourceManager.cxx @@ -621,7 +621,7 @@ void ResourceManager::StorePanelExpansionState ( void ResourceManager::GetToolPanelNodeNames ( ::std::vector& rMatchingNames, - const ::utl::OConfigurationTreeRoot aRoot) const + const ::utl::OConfigurationTreeRoot& aRoot) const { Sequence aChildNodeNames (aRoot.getNodeNames()); const sal_Int32 nCount (aChildNodeNames.getLength()); diff --git a/sfx2/source/sidebar/ResourceManager.hxx b/sfx2/source/sidebar/ResourceManager.hxx index 9ec6e1f0dbf3..7ce2a02e0695 100644 --- a/sfx2/source/sidebar/ResourceManager.hxx +++ b/sfx2/source/sidebar/ResourceManager.hxx @@ -119,7 +119,7 @@ private: const ::rtl::OUString& rsModuleName) const; void GetToolPanelNodeNames ( ::std::vector& rMatchingNames, - const ::utl::OConfigurationTreeRoot aRoot) const; + const ::utl::OConfigurationTreeRoot& aRoot) const; bool IsDeckEnabled ( const ::rtl::OUString& rsDeckId, const Context& rContext, -- cgit v1.2.3