summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-06-22 16:45:03 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-06-25 10:16:37 +0200
commit01e37e3e5626551b6e8d261e357afcea1ba7c758 (patch)
treebbd1bd5402b07c44747d7962a9db48f9c04c1de0 /sc
parente318d5d8146d18e2c76e23f2e3c39527f2af9f36 (diff)
use tools::JsonWriter for dumping property tree
Change-Id: I8f55af19ba10b71bd621e69b27000ab7cb565309 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96677 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/chgtrack.cxx2
-rw-r--r--sc/source/ui/view/tabview.cxx8
2 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/core/tool/chgtrack.cxx b/sc/source/core/tool/chgtrack.cxx
index f734224ce3fa..ab1714d3683e 100644
--- a/sc/source/core/tool/chgtrack.cxx
+++ b/sc/source/core/tool/chgtrack.cxx
@@ -4682,7 +4682,7 @@ static void lcl_getTrackedChange(ScDocument* pDoc, int nIndex, const ScChangeAct
if (pAction->GetType() == SC_CAT_CONTENT)
{
auto redlinesNode = rRedlines.startNode("");
- rRedlines.put("index", nIndex);
+ rRedlines.put("index", static_cast<sal_Int64>(nIndex));
rRedlines.put("author", pAction->GetUser());
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx
index 4cc287403df0..765ef9a1e1d0 100644
--- a/sc/source/ui/view/tabview.cxx
+++ b/sc/source/ui/view/tabview.cxx
@@ -2564,8 +2564,8 @@ void ScTabView::getRowColumnHeaders(const tools::Rectangle& rRectangle, tools::J
{
auto node = rJsonWriter.startStruct();
rJsonWriter.put("text", nStartRow + 1);
- rJsonWriter.put("size",nTotalPixels);
- rJsonWriter.put("groupLevels", nRowGroupDepth);
+ rJsonWriter.put("size", nTotalPixels);
+ rJsonWriter.put("groupLevels", static_cast<sal_Int64>(nRowGroupDepth));
}
std::vector<long> aRowGroupStartPositions(nRowGroupDepth, -nTotalPixels);
@@ -2703,9 +2703,9 @@ void ScTabView::getRowColumnHeaders(const tools::Rectangle& rRectangle, tools::J
if (nStartCol != nEndCol)
{
auto node = rJsonWriter.startStruct();
- rJsonWriter.put("text", nStartCol + 1);
+ rJsonWriter.put("text", static_cast<sal_Int64>(nStartCol + 1));
rJsonWriter.put("size", nTotalPixels);
- rJsonWriter.put("groupLevels", nColGroupDepth);
+ rJsonWriter.put("groupLevels", static_cast<sal_Int64>(nColGroupDepth));
}
std::vector<long> aColGroupStartPositions(nColGroupDepth, -nTotalPixels);