diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-06-04 23:58:03 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-06-05 10:14:49 +0100 |
commit | fd0ede6f5d60e69a6002bcab05ef3edb227af96a (patch) | |
tree | 702b9906c0851ccc23df5cc27e0b52ee27822441 /sd | |
parent | 0382959a1738d531a39978ea6702ea7015779c82 (diff) |
XubString->rtl::OUStringBuffer
Change-Id: I8304092154b74727a67e197a673949e18d6a1ab4
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/toolpanel/TestPanel.cxx | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/sd/source/ui/toolpanel/TestPanel.cxx b/sd/source/ui/toolpanel/TestPanel.cxx index 45932d61fd85..3bbea1bcc80b 100644 --- a/sd/source/ui/toolpanel/TestPanel.cxx +++ b/sd/source/ui/toolpanel/TestPanel.cxx @@ -118,24 +118,22 @@ TestPanel::TestPanel (::Window& i_rParent) ListBox* pBox = new ListBox (pScrollPanel->GetWindow()); for (sal_Int32 i=1; i<=20; i++) { - XubString aString (XubString::CreateFromAscii("Text ")); - aString.Append (XubString::CreateFromInt32(i)); - aString.Append (XubString::CreateFromAscii("/20")); - pBox->InsertEntry (aString); + rtl::OUStringBuffer aString ("Text "); + aString.append(i).append("/20"); + pBox->InsertEntry(aString.makeStringAndClear()); } pScrollPanel->AddControl ( ::std::auto_ptr<TreeNode>(new Wrapper ( pScrollPanel, Size (200,300), pBox, true)), - String::CreateFromAscii ("First ListBox"), + rtl::OUString("First ListBox"), ""); pBox = new ListBox (pScrollPanel->GetWindow()); for (sal_Int32 i=1; i<=20; i++) { - XubString aString (XubString::CreateFromAscii("More Text ")); - aString.Append (XubString::CreateFromInt32(i)); - aString.Append (XubString::CreateFromAscii("/20")); - pBox->InsertEntry (aString); + rtl::OUStringBuffer aString("More Text "); + aString.append(i).append("/20"); + pBox->InsertEntry(aString.makeStringAndClear()); } pScrollPanel->AddControl ( ::std::auto_ptr<TreeNode>(new Wrapper ( |