From 166b5d8146159bf54a4e3f67c578e60a9ddac2d1 Mon Sep 17 00:00:00 2001 From: Ashod Nakashian Date: Fri, 15 Feb 2019 09:39:57 -0500 Subject: LOK: reuse cached json object for ViewId where available Change-Id: I5e29ec2863e06d3dfcbad95c55e355805f12e259 Reviewed-on: https://gerrit.libreoffice.org/67895 Tested-by: Jenkins Reviewed-by: Ashod Nakashian --- desktop/inc/lib/init.hxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'desktop/inc') diff --git a/desktop/inc/lib/init.hxx b/desktop/inc/lib/init.hxx index 2ba5595d8b46..013162aa990f 100644 --- a/desktop/inc/lib/init.hxx +++ b/desktop/inc/lib/init.hxx @@ -116,6 +116,9 @@ namespace desktop { /// Validate that the payload and parsed object match. bool validate() const; + /// Returns true iff there is cached data. + bool isCached() const { return PayloadObject.which() != 0; } + int Type; std::string PayloadString; -- cgit