[libraries/ktextaddons] texttranslator/translator/plugins/bergamot: Return -1 and not boolean here

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit cb7add24c3ad5b24b79251ef66abbcfd0c04667a by Laurent Montel.
Committed on 16/08/2026 at 08:54.
Pushed by mlaurent into branch 'master'.

Return -1 and not boolean here

M  +1    -1    texttranslator/translator/plugins/bergamot/translatormodel.cpp

https://invent.kde.org/libraries/ktextaddons/-/commit/cb7add24c3ad5b24b79251ef66abbcfd0c04667a

diff --git a/texttranslator/translator/plugins/bergamot/translatormodel.cpp b/texttranslator/translator/plugins/bergamot/translatormodel.cpp
index 6a25bee87..5e84d5288 100644
--- a/texttranslator/translator/plugins/bergamot/translatormodel.cpp
+++ b/texttranslator/translator/plugins/bergamot/translatormodel.cpp
@@ -163,7 +163,7 @@ int TranslatorModel::versionInstalled(const QString &shortName) const
             return lang.version;
         }
     }
-    return false;
+    return -1;
 }
 
 void TranslatorModel::clear()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.