diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-06-15 20:32:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-06-18 10:54:10 +0200 |
commit | c8bed6445b244a5d9021dbd9a2ff19d80c03917b (patch) | |
tree | cdfdf457f2617b4480961009e6b50a645d48c592 /sc/inc | |
parent | 41d75ee814d71513922a12fae82f2e7eecbcd5f5 (diff) |
new json writer for LOK
we shave about 3 memory copies off in the process, and
make the class play nicely with our string types.
Change-Id: I1f614fb35b1de499ac99e3b33ac638ad81054bed
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96393
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/chgtrack.hxx | 3 | ||||
-rw-r--r-- | sc/inc/docuno.hxx | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sc/inc/chgtrack.hxx b/sc/inc/chgtrack.hxx index 544e2566fdba..146521538943 100644 --- a/sc/inc/chgtrack.hxx +++ b/sc/inc/chgtrack.hxx @@ -43,6 +43,7 @@ class ScFormulaCell; class ScChangeAction; class ScChangeTrack; class ScAppOptions; +namespace tools { class JsonWriter; } class ScActionColorChanger { @@ -1146,7 +1147,7 @@ public: SC_DLLPUBLIC ScChangeTrack* Clone( ScDocument* pDocument ) const; static void MergeActionState( ScChangeAction* pAct, const ScChangeAction* pOtherAct ); /// Get info about all ScChangeAction elements. - OUString GetChangeTrackInfo(); + void GetChangeTrackInfo(tools::JsonWriter&); }; #endif diff --git a/sc/inc/docuno.hxx b/sc/inc/docuno.hxx index 7c9c87a4f109..02bd4c04981d 100644 --- a/sc/inc/docuno.hxx +++ b/sc/inc/docuno.hxx @@ -375,7 +375,7 @@ public: virtual PointerStyle getPointer() override; /// @see vcl::ITiledRenderable::getTrackedChanges(). - OUString getTrackedChanges() override; + void getTrackedChanges(tools::JsonWriter&) override; /// @see vcl::ITiledRenderable::setClientVisibleArea(). virtual void setClientVisibleArea(const tools::Rectangle& rRectangle) override; |