lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit f4253af367e95a59c5f68140c7b1ec0a45aa22e5
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Sun Nov 24 21:19:46 2024 +0500
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Mon Nov 25 05:33:01 2024 +0100

    Avoid assigning unused value
    
    Change-Id: Ic6c59500805a8710150f083ff089b2e1c4c36530
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177217
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>
    Tested-by: Jenkins

diff --git a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx 
b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
index 74761d739c54..1e527c8e8ada 100644
--- a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
+++ b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx
@@ -241,8 +241,8 @@ bool LoadDictionary(HDInfo& rDict)
 #else
     OString sTmp(OU2ENC(dictpath, osl_getThreadTextEncoding()));
 #endif
-    HyphenDict *dict = nullptr;
-    if ((dict = hnj_hyphen_load(sTmp.getStr())) == nullptr)
+    HyphenDict* dict = hnj_hyphen_load(sTmp.getStr());
+    if (!dict)
     {
         SAL_WARN(
             "lingucomponent",

Reply via email to