summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-06-12 13:40:45 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-06-13 11:20:23 +0100
commit6191fa0847ac5b27083efe1a8c6cd84d080a638c (patch)
treeb107ce00125d0d204e5c32f6c472e70c73182bb2 /toolkit
parent2e16eaf31c7a4849110020aebd5fbc97a1ab3e99 (diff)
reduce use of UniString ctor from null-terminated unicodearray
Change-Id: I98361309ada084d8f78517ce88f210d785f59cc0
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/awt/vclxwindows.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/toolkit/source/awt/vclxwindows.cxx b/toolkit/source/awt/vclxwindows.cxx
index 58107894d93b..b40562d83702 100644
--- a/toolkit/source/awt/vclxwindows.cxx
+++ b/toolkit/source/awt/vclxwindows.cxx
@@ -2665,7 +2665,7 @@ sal_uInt16 VCLXMultiPage::insertTab( TabPage* pPage, rtl::OUString& sTitle )
{
TabControl *pTabControl = getTabControl();
sal_uInt16 id = sal::static_int_cast< sal_uInt16 >( mTabId++ );
- pTabControl->InsertPage( id, sTitle.getStr(), TAB_APPEND );
+ pTabControl->InsertPage( id, sTitle, TAB_APPEND );
pTabControl->SetTabPage( id, pPage );
return id;
}
@@ -2711,15 +2711,15 @@ void SAL_CALL VCLXMultiPage::setTabProps( sal_Int32 ID, const uno::Sequence< bea
if ( pTabControl->GetTabPage( sal::static_int_cast< sal_uInt16 >( ID ) ) == NULL )
throw lang::IndexOutOfBoundsException();
- for ( int i = 0; i < Properties.getLength(); i++ )
+ for (sal_Int32 i = 0; i < Properties.getLength(); ++i)
{
const rtl::OUString &name = Properties[i].Name;
const uno::Any &value = Properties[i].Value;
- if ( name == rtl::OUString( "Title" ) )
+ if (name.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Title")))
{
rtl::OUString title = value.get<rtl::OUString>();
- pTabControl->SetPageText( sal::static_int_cast< sal_uInt16 >( ID ), title.getStr() );
+ pTabControl->SetPageText( sal::static_int_cast< sal_uInt16 >( ID ), title );
}
}
}