summaryrefslogtreecommitdiff
path: root/desktop/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-05-13 16:59:23 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-05-13 21:26:28 +0200
commite8fe7189a175ee00b5d76a89345137a3dc0fb8d9 (patch)
tree100cb626971d1ed6c6b5df4baffe9a0a179679aa /desktop/source
parent3300111c7e8d5f5ffa15b8814d0f6597fae923ec (diff)
Avoid -Werror=unused-variable with --disable-assert-always-abort
...as reported by e.g. <https://ci.libreoffice.org/job/lo_tb_random_config_linux/1977/> Change-Id: I57832496faf2377a4650a4b8c43bb3c62f6977ed Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94140 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'desktop/source')
-rw-r--r--desktop/source/lib/init.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 40e3d8b3b6a3..373deb3c7c53 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -1551,8 +1551,10 @@ void CallbackFlushHandler::queue(const int type, const char* data)
for (const CallbackData& c : m_queue)
oss << i++ << ": [" << c.Type << "] [" << c.PayloadString << "].\n";
SAL_INFO("lok", "Current Queue: " << oss.str());
- for (const CallbackData& c : m_queue)
- assert(c.validate());
+ assert(
+ std::all_of(
+ m_queue.begin(), m_queue.end(),
+ [](const CallbackData& c) { return c.validate(); }));
}
#endif