diff options
author | Eike Rathke <erack@redhat.com> | 2015-11-02 18:03:30 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-11-02 18:07:40 +0100 |
commit | 708bcf9055b04a82943e597747c0d74894714a9e (patch) | |
tree | 3ccc7a11172070f03b1139d00e5f443b7193aa18 /sc/source/ui/view/cellsh1.cxx | |
parent | 5bcc5a690f9707464195483c400427d9ccd6d8dc (diff) |
trash usage of ScRefCellValue default ctor followed by assign()
... that only results in a performance penalty.
Change-Id: Ia161ab7fb03f2d32cf966ce9da9d0319d919fc4c
Diffstat (limited to 'sc/source/ui/view/cellsh1.cxx')
-rw-r--r-- | sc/source/ui/view/cellsh1.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx index 718b33cf8d14..4d5d912b7afb 100644 --- a/sc/source/ui/view/cellsh1.cxx +++ b/sc/source/ui/view/cellsh1.cxx @@ -2866,10 +2866,9 @@ void ScCellShell::ExecuteFillSingleEdit() // Get the initial text value from the above cell. ScDocument* pDoc = GetViewData()->GetDocument(); - ScRefCellValue aCell; ScAddress aPrevPos = aCurPos; aPrevPos.IncRow(-1); - aCell.assign(*pDoc, aPrevPos); + ScRefCellValue aCell(*pDoc, aPrevPos); if (aCell.meType == CELLTYPE_FORMULA) { |