diff options
author | Laurent Godard <lgodard.libre@laposte.net> | 2014-11-03 17:19:35 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-11-04 13:20:56 +0000 |
commit | 99df39b5206be1d03416142c97e77ebfd823b9d5 (patch) | |
tree | 54e43759ac69fb18952f5c6847757a720d489c65 /sc/inc/table.hxx | |
parent | rename Dreh->Rotation (diff) | |
download | core-99df39b5206be1d03416142c97e77ebfd823b9d5.tar.gz core-99df39b5206be1d03416142c97e77ebfd823b9d5.zip |
calc ScTable::SearchAll : avoid calling GetLastDataPos uselessly
in the loop we are in the same table
refactor ScTable::Search too
perfchek result for testSheetFindAll-Search value
before : 804252982
after : 229861999
Change-Id: I907f1260472bcc5d93b2c6425c342187a5f4c787
Reviewed-on: https://gerrit.libreoffice.org/12225
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc/inc/table.hxx')
-rw-r--r-- | sc/inc/table.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index d396402dacd2..0b5adfa246ed 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -994,6 +994,9 @@ private: const ScMarkData& rMark, OUString& rUndoStr, ScDocument* pUndoDoc); bool Search(const SvxSearchItem& rSearchItem, SCCOL& rCol, SCROW& rRow, const ScMarkData& rMark, OUString& rUndoStr, ScDocument* pUndoDoc); + bool Search(const SvxSearchItem& rSearchItem, SCCOL& rCol, SCROW& rRow, + const SCCOL& nLastCol, const SCROW& nLastRow, + const ScMarkData& rMark, OUString& rUndoStr, ScDocument* pUndoDoc); bool SearchAll(const SvxSearchItem& rSearchItem, const ScMarkData& rMark, ScRangeList& rMatchedRanges, OUString& rUndoStr, ScDocument* pUndoDoc); bool Replace(const SvxSearchItem& rSearchItem, SCCOL& rCol, SCROW& rRow, |