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/docshell/docsh8.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/docshell/docsh8.cxx')
-rw-r--r-- | sc/source/ui/docshell/docsh8.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sc/source/ui/docshell/docsh8.cxx b/sc/source/ui/docshell/docsh8.cxx index 317cbf2741f1..411dbefe5749 100644 --- a/sc/source/ui/docshell/docsh8.cxx +++ b/sc/source/ui/docshell/docsh8.cxx @@ -610,8 +610,7 @@ void lcl_GetColumnTypes( if ( !bTypeDefined ) { // Field type. - ScRefCellValue aCell; - aCell.assign(rDoc, ScAddress(nCol, nFirstDataRow, nTab)); + ScRefCellValue aCell(rDoc, ScAddress(nCol, nFirstDataRow, nTab)); if (aCell.isEmpty() || aCell.hasString()) nDbType = sdbc::DataType::VARCHAR; else @@ -966,8 +965,7 @@ sal_uLong ScDocShell::DBaseExport( const OUString& rFullFileName, rtl_TextEncodi { case sdbc::DataType::LONGVARCHAR: { - ScRefCellValue aCell; - aCell.assign(aDocument, ScAddress(nDocCol, nDocRow, nTab)); + ScRefCellValue aCell(aDocument, ScAddress(nDocCol, nDocRow, nTab)); if (!aCell.isEmpty()) { if (aCell.meType == CELLTYPE_EDIT) |