summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2024-11-22 12:48:41 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2024-11-22 14:24:44 +0100
commit816b51c7a9cdd72eaa01f3c074ba5a8446917d19 (patch)
treef9180a3a824bfb7fefe3a83896739942f24dbdba
parent2bcaafd4a25e4875ab08114f5a8d198ad3a35212 (diff)
PVS: V547 Expression 'bNoDictionaryAvailable' is always false
Since commit a50a2bf8e8c6084aeacb8d2db42e21f528410742 Author: Szymon Kłos <szymon.klos@collabora.com> Date: Thu Jan 24 11:22:22 2019 +0100 tdf#86731 Don't show 'start from beginning' when dictionary is missing Change-Id: Ib71051ddbb3318c74fb5020ec27560f1c6f73893 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177017 Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r--sw/inc/strings.hrc1
-rw-r--r--sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx2
2 files changed, 1 insertions, 2 deletions
diff --git a/sw/inc/strings.hrc b/sw/inc/strings.hrc
index a6ce4cad0a5a..44b011cba6b7 100644
--- a/sw/inc/strings.hrc
+++ b/sw/inc/strings.hrc
@@ -945,7 +945,6 @@
#define STR_QUERY_SPELL_CONTINUE NC_("STR_QUERY_SPELL_CONTINUE", "Continue checking at beginning of document?")
#define STR_SPELLING_COMPLETED NC_("STR_SPELLING_COMPLETED", "The spellcheck is complete.")
-#define STR_DICTIONARY_UNAVAILABLE NC_("STR_DICTIONARY_UNAVAILABLE", "No dictionary available")
/*--------------------------------------------------------------------
Description: strings for the types
diff --git a/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx b/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx
index 6a865078af74..db9c5a84289f 100644
--- a/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx
+++ b/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx
@@ -401,7 +401,7 @@ The code below would only be part of the solution.
if( aRet.empty() && bCloseMessage && !bNoDictionaryAvailable )
{
LockFocusNotification( true );
- OUString sInfo( SwResId( bNoDictionaryAvailable ? STR_DICTIONARY_UNAVAILABLE : STR_SPELLING_COMPLETED ) );
+ OUString sInfo( SwResId( STR_SPELLING_COMPLETED ) );
auto xSpellController = GetController();
// #i84610#
std::unique_ptr<weld::MessageDialog> xBox(