[Libreoffice-commits] core.git: binaryurp/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sat Dec 8 21:02:39 UTC 2018


 binaryurp/source/bridge.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 777a3f0a157402b249789e19a6fd5750c44ca971
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Sat Dec 8 17:31:59 2018 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Sat Dec 8 22:02:18 2018 +0100

    Use [[maybe_unused]] instead of cast to void
    
    Change-Id: I1db02a4eff2d6f16bfb18bda2155d8a26c4a9335
    Reviewed-on: https://gerrit.libreoffice.org/64814
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/binaryurp/source/bridge.cxx b/binaryurp/source/bridge.cxx
index 04f9ae5df2dc..90877f0754c0 100644
--- a/binaryurp/source/bridge.cxx
+++ b/binaryurp/source/bridge.cxx
@@ -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;


More information about the Libreoffice-commits mailing list