summaryrefslogtreecommitdiff
path: root/desktop/inc/lib/init.hxx
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2019-02-15 09:39:57 -0500
committerAshod Nakashian <ashnakash@gmail.com>2019-02-22 15:42:43 +0100
commit166b5d8146159bf54a4e3f67c578e60a9ddac2d1 (patch)
tree64b49c4e5df5b5ee009a34005b880bb870b033e0 /desktop/inc/lib/init.hxx
parent5f978a3b8d2cdab29aef4544dfb66ad755dfdc3f (diff)
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 <ashnakash@gmail.com>
Diffstat (limited to 'desktop/inc/lib/init.hxx')
-rw-r--r--desktop/inc/lib/init.hxx3
1 files changed, 3 insertions, 0 deletions
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;