summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/tabvwshb.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-05-15 09:03:57 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-05-15 12:05:47 +0100
commit9b71aa0de186d534f4dc79b587f0cd6d8e17e590 (patch)
tree51e5e389120cab2f6e170a7d6aedded1558c351f /sc/source/ui/view/tabvwshb.cxx
parent844bba4bb44966a1d27f55c4e511eb7f5887d147 (diff)
convert GetUndoActionComment family to rtl::OUString
Change-Id: I36ccf62ee2e2769bcf1aef6d26d96bce6c7078f0
Diffstat (limited to 'sc/source/ui/view/tabvwshb.cxx')
-rw-r--r--sc/source/ui/view/tabvwshb.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/sc/source/ui/view/tabvwshb.cxx b/sc/source/ui/view/tabvwshb.cxx
index 843f4cf9d62c..3a0e5ed36be0 100644
--- a/sc/source/ui/view/tabvwshb.cxx
+++ b/sc/source/ui/view/tabvwshb.cxx
@@ -553,9 +553,11 @@ void ScTabViewShell::GetUndoState(SfxItemSet &rSet)
std::vector<String> &aList = aStrLst.GetList();
sal_Bool bIsUndo = ( nWhich == SID_GETUNDOSTRINGS );
size_t nCount = bIsUndo ? pUndoManager->GetUndoActionCount() : pUndoManager->GetRedoActionCount();
- for (size_t i=0; i<nCount; i++)
- aList.push_back( bIsUndo ? pUndoManager->GetUndoActionComment(i) :
- pUndoManager->GetRedoActionComment(i) );
+ for (size_t i=0; i<nCount; ++i)
+ {
+ aList.push_back( rtl::OUString( bIsUndo ? pUndoManager->GetUndoActionComment(i) :
+ pUndoManager->GetRedoActionComment(i) ) );
+ }
}
rSet.Put( aStrLst );
}