summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-10-13 11:59:29 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-10-13 17:39:32 +0200
commit03c474c640d63f54d520712693e2f47976d8d531 (patch)
tree5cc255f9ee7a61d18fecb80743787378b6150b74 /sc/source
parentc89f0cd9f6a4b3f77440dd7ea9da08f9cd327711 (diff)
Unify JsonWriter::put and putRaw a bit
In the process, it turned out that there was unnecessary conversion of OStringBuffer to OString and back to OStringBuffer when using putRaw, which is avoided now. Change-Id: I1e3ee685679df0b025bee8f4430624ee5bc9ccb3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123547 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/view/tabview.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx
index 1315b2d88214..8d8412d3673e 100644
--- a/sc/source/ui/view/tabview.cxx
+++ b/sc/source/ui/view/tabview.cxx
@@ -2720,7 +2720,7 @@ void ScTabView::getRowColumnHeaders(const tools::Rectangle& rRectangle, tools::J
if (nRowGroupDepth > 0)
{
aRowGroupsBuffer.append(",\n");
- rJsonWriter.putRaw(aRowGroupsBuffer.getStr());
+ rJsonWriter.putRaw(aRowGroupsBuffer);
}
/// end collecting ROWS
@@ -2815,7 +2815,7 @@ void ScTabView::getRowColumnHeaders(const tools::Rectangle& rRectangle, tools::J
if (nColGroupDepth > 0)
{
aColGroupsBuffer.append(",\n");
- rJsonWriter.putRaw(aColGroupsBuffer.getStr());
+ rJsonWriter.putRaw(aColGroupsBuffer);
}
/// end collecting COLs