summaryrefslogtreecommitdiff
path: root/svl/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-05-14 08:34:58 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-05-14 14:34:09 +0100
commitc182a752412aab354aaf02ee0c75b7cb1ee35d66 (patch)
treee4ee080ed6a7c5f665a33c52ad9d1e3a56b6031b /svl/source
parent28062c62818ce40c17fb67b480612f8bb9bcd522 (diff)
convert GetComment family to rtl::OUString
Change-Id: I563ab83a24ca4f839892548b350486e83dd071d3
Diffstat (limited to 'svl/source')
-rw-r--r--svl/source/undo/undo.cxx15
1 files changed, 7 insertions, 8 deletions
diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx
index 449b79a89e9d..91836647d1a2 100644
--- a/svl/source/undo/undo.cxx
+++ b/svl/source/undo/undo.cxx
@@ -103,10 +103,10 @@ sal_Bool SfxUndoAction::Merge( SfxUndoAction * )
//------------------------------------------------------------------------
-XubString SfxUndoAction::GetComment() const
+rtl::OUString SfxUndoAction::GetComment() const
{
DBG_CHKTHIS(SfxUndoAction, 0);
- return XubString();
+ return rtl::OUString();
}
//------------------------------------------------------------------------
@@ -1159,11 +1159,11 @@ size_t SfxUndoManager::ImplLeaveListAction( const bool i_merge, UndoManagerGuard
}
// if the undo array has no comment, try to get it from its children
- if ( pListAction->GetComment().Len() == 0 )
+ if ( pListAction->GetComment().isEmpty() )
{
for( size_t n = 0; n < pListAction->aUndoActions.size(); n++ )
{
- if( pListAction->aUndoActions[n].pAction->GetComment().Len() )
+ if (!pListAction->aUndoActions[n].pAction->GetComment().isEmpty())
{
pListAction->SetComment( pListAction->aUndoActions[n].pAction->GetComment() );
break;
@@ -1294,7 +1294,7 @@ sal_uInt16 SfxListUndoAction::GetId() const
//------------------------------------------------------------------------
-XubString SfxListUndoAction::GetComment() const
+rtl::OUString SfxListUndoAction::GetComment() const
{
return aComment;
}
@@ -1454,12 +1454,11 @@ void SfxLinkUndoAction::Repeat(SfxRepeatTarget&r)
//------------------------------------------------------------------------
-XubString SfxLinkUndoAction::GetComment() const
+rtl::OUString SfxLinkUndoAction::GetComment() const
{
if ( pAction )
return pAction->GetComment();
- else
- return XubString();
+ return rtl::OUString();
}