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 --- dbaccess/source/ui/tabledesign/TableUndo.cxx | 2 +- dbaccess/source/ui/tabledesign/TableUndo.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'dbaccess/source/ui/tabledesign') diff --git a/dbaccess/source/ui/tabledesign/TableUndo.cxx b/dbaccess/source/ui/tabledesign/TableUndo.cxx index 1411a8d029a3..4fd318180eef 100644 --- a/dbaccess/source/ui/tabledesign/TableUndo.cxx +++ b/dbaccess/source/ui/tabledesign/TableUndo.cxx @@ -324,7 +324,7 @@ void OTableEditorInsNewUndoAct::Redo() } // class OPrimKeyUndoAct -OPrimKeyUndoAct::OPrimKeyUndoAct( OTableEditorCtrl* pOwner, MultiSelection aDeletedKeys, MultiSelection aInsertedKeys) : +OPrimKeyUndoAct::OPrimKeyUndoAct( OTableEditorCtrl* pOwner, const MultiSelection& aDeletedKeys, const MultiSelection& aInsertedKeys) : OTableEditorUndoAct( pOwner ,STR_TABLEDESIGN_UNDO_PRIMKEY) ,m_aDelKeys( aDeletedKeys ) ,m_aInsKeys( aInsertedKeys ) diff --git a/dbaccess/source/ui/tabledesign/TableUndo.hxx b/dbaccess/source/ui/tabledesign/TableUndo.hxx index 38bf92834ba8..d16e55272fbd 100644 --- a/dbaccess/source/ui/tabledesign/TableUndo.hxx +++ b/dbaccess/source/ui/tabledesign/TableUndo.hxx @@ -142,7 +142,7 @@ namespace dbaui virtual void Redo() SAL_OVERRIDE; public: TYPEINFO_OVERRIDE(); - OPrimKeyUndoAct( OTableEditorCtrl* pOwner, MultiSelection aDeletedKeys, MultiSelection aInsertedKeys ); + OPrimKeyUndoAct( OTableEditorCtrl* pOwner, const MultiSelection& aDeletedKeys, const MultiSelection& aInsertedKeys ); virtual ~OPrimKeyUndoAct(); }; } -- cgit