[Libreoffice-commits] core.git: sc/source
Douglas Mencken
dougmencken at gmail.com
Mon Dec 16 11:11:16 PST 2013
sc/source/ui/docshell/externalrefmgr.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit bc8f614ad85c441620f0e0388155f6ce83dbc124
Author: Douglas Mencken <dougmencken at gmail.com>
Date: Mon Dec 16 09:20:43 2013 -0500
Do not use C++11 std::vector.data(), use an alternative instead
Note that there is no need to check for empty(), because
matrix is always initialized with all empty elements in this code.
Change-Id: If05b3b12d7209b99fcbb09f7c97e74476fb9ce06
Reviewed-on: https://gerrit.libreoffice.org/7098
Reviewed-by: Kohei Yoshida <libreoffice at kohei.us>
Tested-by: Kohei Yoshida <libreoffice at kohei.us>
diff --git a/sc/source/ui/docshell/externalrefmgr.cxx b/sc/source/ui/docshell/externalrefmgr.cxx
index 4646103..81075a3 100644
--- a/sc/source/ui/docshell/externalrefmgr.cxx
+++ b/sc/source/ui/docshell/externalrefmgr.cxx
@@ -1392,13 +1392,13 @@ inline T ColumnBatch<T>::getValue(ScRefCellValue& raCell) const
template<>
inline void ColumnBatch<svl::SharedString>::putValues(ScMatrixRef& xMat, const SCCOL nCol) const
{
- xMat->PutString(maStorage.data(), maStorage.size(), nCol, mnRowStart);
+ xMat->PutString(&maStorage.front(), maStorage.size(), nCol, mnRowStart);
}
template<class T>
inline void ColumnBatch<T>::putValues(ScMatrixRef& xMat, const SCCOL nCol) const
{
- xMat->PutDouble(maStorage.data(), maStorage.size(), nCol, mnRowStart);
+ xMat->PutDouble(&maStorage.front(), maStorage.size(), nCol, mnRowStart);
}
static ScTokenArray* convertToTokenArray(
More information about the Libreoffice-commits
mailing list