Kaydet (Commit) 1666b302 authored tarafından Ashod Nakashian's avatar Ashod Nakashian Kaydeden (comit) Ashod Nakashian

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: 's avatarAshod Nakashian <ashnakash@gmail.com>
üst b1a3db96
...@@ -90,7 +90,19 @@ namespace desktop { ...@@ -90,7 +90,19 @@ namespace desktop {
void addViewStates(int viewId); void addViewStates(int viewId);
void removeViewStates(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: private:
void removeAll(const std::function<bool (const queue_type::value_type&)>& rTestFunc); void removeAll(const std::function<bool (const queue_type::value_type&)>& rTestFunc);
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment