diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-03-03 09:59:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-04 00:51:57 +0000 |
commit | c6223049651d6607101ef04271773e478a429c8a (patch) | |
tree | f2bfb8c976896009409ae47780c324d3a9b51c77 /reportdesign | |
parent | 242ed97d9a74a08363e1306452bba20f06d673e4 (diff) |
V813: Decreased performance
Change-Id: Ica2563d9e8da15e19eb38246d4de54a1fcb75655
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/ui/inc/UITools.hxx | 8 | ||||
-rw-r--r-- | reportdesign/source/ui/misc/UITools.cxx | 5 |
2 files changed, 6 insertions, 7 deletions
diff --git a/reportdesign/source/ui/inc/UITools.hxx b/reportdesign/source/ui/inc/UITools.hxx index 1471152e99a1..3fa94d7b06d5 100644 --- a/reportdesign/source/ui/inc/UITools.hxx +++ b/reportdesign/source/ui/inc/UITools.hxx @@ -116,17 +116,17 @@ namespace rptui ); /** notifySystemWindow adds or remove the given window _pToRegister at the Systemwindow found when search _pWindow. - @param _pWindow + @param pWindow The window which is used to search for the SystemWindow. - @param _pToRegister + @param pToRegister The window which should be added or removed on the TaskPaneList. - @param _rMemFunc + @param rMemFunc The member function which should be called at the SystemWindow when found. Possible values are: ::comphelper::mem_fun(&TaskPaneList::AddWindow) ::comphelper::mem_fun(&TaskPaneList::RemoveWindow) */ - void notifySystemWindow(::vcl::Window* _pWindow, ::vcl::Window* _pToRegister, ::comphelper::mem_fun1_t<TaskPaneList, ::vcl::Window*> _rMemFunc); + void notifySystemWindow(::vcl::Window* pWindow, ::vcl::Window* pToRegister, const ::comphelper::mem_fun1_t<TaskPaneList, ::vcl::Window*>& rMemFunc); const sal_Int16 ISOVER_IGNORE_CUSTOMSHAPES = 1; diff --git a/reportdesign/source/ui/misc/UITools.cxx b/reportdesign/source/ui/misc/UITools.cxx index 59733116c6d8..41cc15eaf948 100644 --- a/reportdesign/source/ui/misc/UITools.cxx +++ b/reportdesign/source/ui/misc/UITools.cxx @@ -831,14 +831,13 @@ void applyCharacterSettings( const uno::Reference< report::XReportControlFormat } } - -void notifySystemWindow(vcl::Window* _pWindow, vcl::Window* _pToRegister, ::comphelper::mem_fun1_t<TaskPaneList,vcl::Window*> _rMemFunc) +void notifySystemWindow(vcl::Window* _pWindow, vcl::Window* _pToRegister, const ::comphelper::mem_fun1_t<TaskPaneList,vcl::Window*>& rMemFunc) { OSL_ENSURE(_pWindow,"Window can not be null!"); SystemWindow* pSystemWindow = _pWindow ? _pWindow->GetSystemWindow() : NULL; if ( pSystemWindow ) { - _rMemFunc( pSystemWindow->GetTaskPaneList(), _pToRegister ); + rMemFunc( pSystemWindow->GetTaskPaneList(), _pToRegister ); } } |