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/filter/oox/worksheethelper.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/filter/oox/worksheethelper.cxx')
-rw-r--r-- | sc/source/filter/oox/worksheethelper.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/filter/oox/worksheethelper.cxx b/sc/source/filter/oox/worksheethelper.cxx index 8f0e7cc33b63..69fdb25a53e3 100644 --- a/sc/source/filter/oox/worksheethelper.cxx +++ b/sc/source/filter/oox/worksheethelper.cxx @@ -1023,8 +1023,7 @@ void WorksheetGlobals::insertHyperlink( const CellAddress& rAddress, const OUStr { ScDocumentImport& rDoc = getDocImport(); ScAddress aPos(rAddress.Column, rAddress.Row, rAddress.Sheet); - ScRefCellValue aCell; - aCell.assign(rDoc.getDoc(), aPos); + ScRefCellValue aCell(rDoc.getDoc(), aPos); if (aCell.meType == CELLTYPE_STRING || aCell.meType == CELLTYPE_EDIT) { |