summaryrefslogtreecommitdiff
path: root/desktop/inc
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2019-02-13 08:27:09 -0500
committerAshod Nakashian <ashnakash@gmail.com>2019-02-22 15:33:20 +0100
commit1666b302403e97d5fe92c963d745947554da6906 (patch)
tree06cede4137b6896f789e3e5894ff0f29ea4d266f /desktop/inc
parentb1a3db96dea8d0c2ec57ed843703f7b93b9dd4fe (diff)
LOK: Use a struct instead of std::pair to support caching
Change-Id: I48e8de8709e017f2667c0bf2c850004128c840d1 Reviewed-on: https://gerrit.libreoffice.org/67890 Tested-by: Jenkins Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'desktop/inc')
-rw-r--r--desktop/inc/lib/init.hxx14
1 files changed, 13 insertions, 1 deletions
diff --git a/desktop/inc/lib/init.hxx b/desktop/inc/lib/init.hxx
index d5adb7ac411c..b02329e7f955 100644
--- a/desktop/inc/lib/init.hxx
+++ b/desktop/inc/lib/init.hxx
@@ -90,7 +90,19 @@ namespace desktop {
void addViewStates(int viewId);
void removeViewStates(int viewId);
- typedef std::vector<std::pair<int, std::string>> queue_type;
+ struct CallbackData
+ {
+ CallbackData(int type, const std::string& payload)
+ : Type(type)
+ , PayloadString(payload)
+ {
+ }
+
+ int Type;
+ std::string PayloadString;
+ };
+
+ typedef std::vector<CallbackData> queue_type;
private:
void removeAll(const std::function<bool (const queue_type::value_type&)>& rTestFunc);