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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Sun Mar 21 19:45:47 UTC 2021


 libreofficekit/source/gtk/lokdocview.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 9456a764a98daa2915f6fefac336d8bb5cff531a
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Mar 21 14:38:36 2021 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Mar 21 20:44:59 2021 +0100

    cid#1474127 Unchecked return value from library
    
    Change-Id: I6dac6f24d33ce4557ab94ff08357e597819510d5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112839
    Tested-by: Caolán McNamara <caolanm at redhat.com>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index 832d799b1b7a..156224b57351 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -2788,10 +2788,10 @@ static gboolean lok_doc_view_initable_init (GInitable *initable, GCancellable* /
         return true;
 
     if (priv->m_bUnipoll)
-        g_setenv("SAL_LOK_OPTIONS", "unipoll", FALSE);
+        (void)g_setenv("SAL_LOK_OPTIONS", "unipoll", FALSE);
 
     static const char testingLangs[] = "de_DE en_GB en_US es_ES fr_FR it nl pt_BR pt_PT ru";
-    g_setenv("LOK_ALLOWLIST_LANGUAGES", testingLangs, FALSE);
+    (void)g_setenv("LOK_ALLOWLIST_LANGUAGES", testingLangs, FALSE);
 
     priv->m_pOffice = lok_init_2(priv->m_aLOPath.c_str(), priv->m_aUserProfileURL.empty() ? nullptr : priv->m_aUserProfileURL.c_str());
 


More information about the Libreoffice-commits mailing list