summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/docsh5.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/docshell/docsh5.cxx')
-rw-r--r--sc/source/ui/docshell/docsh5.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/docshell/docsh5.cxx b/sc/source/ui/docshell/docsh5.cxx
index c3ed10e48c14..90fbe83b80d5 100644
--- a/sc/source/ui/docshell/docsh5.cxx
+++ b/sc/source/ui/docshell/docsh5.cxx
@@ -66,7 +66,7 @@ using ::std::vector;
// former viewfunc/dbfunc methods
-void ScDocShell::ErrorMessage( sal_uInt16 nGlobStrId )
+void ScDocShell::ErrorMessage(const char* pGlobStrId)
{
//! StopMarking at the (active) view?
@@ -74,15 +74,15 @@ void ScDocShell::ErrorMessage( sal_uInt16 nGlobStrId )
ScWaitCursorOff aWaitOff( pParent );
bool bFocus = pParent && pParent->HasFocus();
- if(nGlobStrId==STR_PROTECTIONERR)
+ if (pGlobStrId && strcmp(pGlobStrId, STR_PROTECTIONERR) == 0)
{
- if(IsReadOnly())
+ if (IsReadOnly())
{
- nGlobStrId=STR_READONLYERR;
+ pGlobStrId = STR_READONLYERR;
}
}
- ScopedVclPtrInstance< InfoBox > aBox( pParent, ScGlobal::GetRscString( nGlobStrId ) );
+ ScopedVclPtrInstance< InfoBox > aBox( pParent, ScGlobal::GetRscString(pGlobStrId));
aBox->Execute();
if (bFocus)
pParent->GrabFocus();