summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-04-30 12:48:52 -0400
committerAshod Nakashian <ashnakash@gmail.com>2016-05-01 15:33:37 +0000
commit8a6dab5da851f38a8ecef633e06e3cb2ac5e7849 (patch)
tree8a855846ebce619a959c2b112b75b577b57963b3 /desktop
parenta9771e1f4d0d2602713983ab1f3e743784e9ae72 (diff)
std::tuple -> std::pair
Change-Id: I2f11436a5c9691c2a0aac3655bc2c543d1c3d684 Reviewed-on: https://gerrit.libreoffice.org/24566 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/inc/lib/init.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop/inc/lib/init.hxx b/desktop/inc/lib/init.hxx
index 8ef92b142653..6c475ac94473 100644
--- a/desktop/inc/lib/init.hxx
+++ b/desktop/inc/lib/init.hxx
@@ -94,7 +94,7 @@ namespace desktop {
}
if (type == LOK_CALLBACK_INVALIDATE_TILES &&
- !m_queue.empty() && std::get<0>(m_queue.back()) == type && std::get<1>(m_queue.back()) == payload)
+ !m_queue.empty() && m_queue.back().first == type && m_queue.back().second == payload)
{
// Supress duplicate invalidation only when they are in sequence.
return;
@@ -124,7 +124,7 @@ namespace desktop {
std::unique_lock<std::mutex> lock(m_mutex);
for (auto& pair : m_queue)
{
- m_pCallback(std::get<0>(pair), std::get<1>(pair).c_str(), m_pData);
+ m_pCallback(pair.first, pair.second.c_str(), m_pData);
}
m_queue.clear();
@@ -132,7 +132,7 @@ namespace desktop {
}
private:
- std::vector<std::tuple<int, std::string>> m_queue;
+ std::vector<std::pair<int, std::string>> m_queue;
std::map<int, std::string> m_states;
LibreOfficeKitCallback m_pCallback;
void *m_pData;