diff options
Diffstat (limited to 'sc/source/ui/docshell/docsh5.cxx')
-rw-r--r-- | sc/source/ui/docshell/docsh5.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/docsh5.cxx b/sc/source/ui/docshell/docsh5.cxx index 08ac3b5f0fe0..3afc8c5b4fa5 100644 --- a/sc/source/ui/docshell/docsh5.cxx +++ b/sc/source/ui/docshell/docsh5.cxx @@ -67,7 +67,7 @@ using ::std::vector; // former viewfunc/dbfunc methods -void ScDocShell::ErrorMessage(const char* pGlobStrId) +void ScDocShell::ErrorMessage(TranslateId pGlobStrId) { //! StopMarking at the (active) view? @@ -75,7 +75,7 @@ void ScDocShell::ErrorMessage(const char* pGlobStrId) weld::WaitObject aWaitOff( pParent ); bool bFocus = pParent && pParent->has_focus(); - if (pGlobStrId && strcmp(pGlobStrId, STR_PROTECTIONERR) == 0) + if (pGlobStrId && pGlobStrId == STR_PROTECTIONERR) { if (IsReadOnly()) { |