summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell
diff options
context:
space:
mode:
authorKohei Yoshida <kohei@libreoffice.org>2023-01-17 17:10:07 -0500
committerKohei Yoshida <kohei@libreoffice.org>2023-01-26 02:27:57 +0000
commit516bc904e94971b61e4b13af632bf321b0a4a640 (patch)
treefc48af7d2c5e719930c70de6da0ea9bb471bff1f /sc/source/ui/docshell
parentdf470d9658c202a990b9c75e2a8d6e3fd7a06dfd (diff)
Upgrade mdds and orcus to 2.1.0 and 0.18.0, respectively
Change-Id: I288b5b54bd07d951bcc68afda7514bde730193dc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146107 Tested-by: Jenkins Reviewed-by: Kohei Yoshida <kohei@libreoffice.org>
Diffstat (limited to 'sc/source/ui/docshell')
-rw-r--r--sc/source/ui/docshell/datastream.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/docshell/datastream.cxx b/sc/source/ui/docshell/datastream.cxx
index 4bcbbaf9978c..edd3aeaf26cd 100644
--- a/sc/source/ui/docshell/datastream.cxx
+++ b/sc/source/ui/docshell/datastream.cxx
@@ -66,21 +66,21 @@ public:
static void begin_row() {}
static void end_row() {}
- void cell(const char* p, size_t n, bool /*transient*/)
+ void cell(std::string_view s, bool /*transient*/)
{
if (mnCols >= mnColCount)
return;
DataStream::Cell aCell;
- if (ScStringUtil::parseSimpleNumber(p, n, '.', ',', aCell.mfValue))
+ if (ScStringUtil::parseSimpleNumber(s.data(), s.size(), '.', ',', aCell.mfValue))
{
aCell.mbValue = true;
}
else
{
aCell.mbValue = false;
- aCell.maStr.Pos = std::distance(mpLineHead, p);
- aCell.maStr.Size = n;
+ aCell.maStr.Pos = std::distance(mpLineHead, s.data());
+ aCell.maStr.Size = s.size();
}
mrLine.maCells.push_back(aCell);
@@ -199,7 +199,7 @@ private:
rLine.maCells.clear();
mpStream->ReadLine(rLine.maLine);
CSVHandler aHdl(rLine, mnColCount);
- orcus::csv_parser<CSVHandler> parser(rLine.maLine.getStr(), rLine.maLine.getLength(), aHdl, maConfig);
+ orcus::csv_parser<CSVHandler> parser(rLine.maLine.getStr(), aHdl, maConfig);
parser.parse();
}