Kaydet (Commit) 777a3f0a authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Use [[maybe_unused]] instead of cast to void

Change-Id: I1db02a4eff2d6f16bfb18bda2155d8a26c4a9335
Reviewed-on: https://gerrit.libreoffice.org/64814
Tested-by: Jenkins
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst d6e67456
......@@ -769,9 +769,8 @@ void Bridge::handleCommitChangeRequest(
BinaryAny ret;
assert(inArguments.size() == 1);
css::uno::Sequence< css::bridge::ProtocolProperty > s;
bool ok = (mapBinaryToCppAny(inArguments[0]) >>= s);
[[maybe_unused]] bool ok = (mapBinaryToCppAny(inArguments[0]) >>= s);
assert(ok);
(void) ok; // avoid warnings
for (sal_Int32 i = 0; i != s.getLength(); ++i) {
if (s[i].Name == "CurrentContext") {
bCcMode = true;
......
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