summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-05-19 10:02:29 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-05-20 11:17:22 +0200
commit8d54796bf152499ecbe61788be64c9035f725dfa (patch)
tree9516219cf8e60bdd46597e522ca4e9fde9b8f407 /dbaccess
parente4740dbecfce958c2c707d8cc92e6dbe52f4b71b (diff)
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 <sbergman@redhat.com>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/tabledesign/TableUndo.cxx2
-rw-r--r--dbaccess/source/ui/tabledesign/TableUndo.hxx2
2 files changed, 2 insertions, 2 deletions
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();
};
}