summaryrefslogtreecommitdiff
path: root/sc/source/ui/undo/undodat.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/undo/undodat.cxx')
-rw-r--r--sc/source/ui/undo/undodat.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/undo/undodat.cxx b/sc/source/ui/undo/undodat.cxx
index c1a19e9ec490..965fcf6f912e 100644
--- a/sc/source/ui/undo/undodat.cxx
+++ b/sc/source/ui/undo/undodat.cxx
@@ -1376,15 +1376,15 @@ ScUndoDataPilot::ScUndoDataPilot( ScDocShell* pNewDocShell,
OUString ScUndoDataPilot::GetComment() const
{
- sal_uInt16 nIndex;
+ const char* pResId;
if (xOldUndoDoc && xNewUndoDoc)
- nIndex = STR_UNDO_PIVOT_MODIFY;
+ pResId = STR_UNDO_PIVOT_MODIFY;
else if (xNewUndoDoc)
- nIndex = STR_UNDO_PIVOT_NEW;
+ pResId = STR_UNDO_PIVOT_NEW;
else
- nIndex = STR_UNDO_PIVOT_DELETE;
+ pResId = STR_UNDO_PIVOT_DELETE;
- return ScGlobal::GetRscString( nIndex );
+ return ScGlobal::GetRscString(pResId);
}
void ScUndoDataPilot::Undo()