remove some annoying XubStrings

Change-Id: I8c34a344285b6929091788c6b7a5529b48943f94
This commit is contained in:
Caolán McNamara 2012-06-25 10:07:22 +01:00
parent 022b62296c
commit 9928fd7fc6
6 changed files with 12 additions and 13 deletions

View File

@ -261,7 +261,7 @@ void VCLXAccessibleList::UpdateSelection (::rtl::OUString sTextOfSelectedItem)
if ( pBox != NULL )
{
// Find the index of the selected item inside the VCL control...
sal_uInt16 nIndex = pBox->GetEntryPos (XubString(sTextOfSelectedItem));
sal_uInt16 nIndex = pBox->GetEntryPos(sTextOfSelectedItem);
// ...and then find the associated accessibility object.
if ( nIndex == LISTBOX_ENTRY_NOTFOUND )
nIndex = 0;

View File

@ -327,7 +327,7 @@ void AxisPositionsTabPage::Reset(const SfxItemSet& rInAttrs)
else
{
m_aED_CrossesAtCategory.SetNoSelection();
m_aED_CrossesAt.SetTextValue(XubString());
m_aED_CrossesAt.SetTextValue(rtl::OUString());
}
}
else

View File

@ -523,12 +523,11 @@ SdPage* DocumentHelper::ProvideMasterPage (
SdPage* pMasterPageInDocument = NULL;
// Search for a master page with the same name as the given one in
// the target document.
const XubString sMasterPageLayoutName (pMasterPage->GetLayoutName());
const rtl::OUString sMasterPageLayoutName (pMasterPage->GetLayoutName());
for (sal_uInt16 nIndex=0,nCount=rTargetDocument.GetMasterPageCount(); nIndex<nCount; ++nIndex)
{
SdPage* pCandidate = static_cast<SdPage*>(rTargetDocument.GetMasterPage(nIndex));
if (pCandidate!=NULL
&& sMasterPageLayoutName==pCandidate->GetLayoutName())
if (pCandidate && sMasterPageLayoutName.equals(pCandidate->GetLayoutName()))
{
// The requested master page does already exist in the
// target document, return it.

View File

@ -804,8 +804,8 @@ void TextWindow::KeyInput( const KeyEvent& rKEvent )
{
// Damit die Selektion erhalten bleibt
mbActivePopup = sal_True;
XubString aChars = Edit::GetGetSpecialCharsFunction()( this, GetFont() );
if ( aChars.Len() )
rtl::OUString aChars = Edit::GetGetSpecialCharsFunction()( this, GetFont() );
if (!aChars.isEmpty())
{
mpExtTextView->InsertText( aChars );
mpExtTextView->GetTextEngine()->SetModified( sal_True );
@ -905,8 +905,8 @@ void TextWindow::Command( const CommandEvent& rCEvt )
break;
case SV_MENU_EDIT_INSERTSYMBOL:
{
XubString aChars = Edit::GetGetSpecialCharsFunction()( this, GetFont() );
if ( aChars.Len() )
rtl::OUString aChars = Edit::GetGetSpecialCharsFunction()( this, GetFont() );
if (!aChars.isEmpty())
{
mpExtTextView->InsertText( aChars );
mpExtTextEngine->SetModified( sal_True );

View File

@ -657,9 +657,9 @@ SvxTextForwarder* SvxTextEditSourceImpl::GetBackgroundTextForwarder()
if (mpOutliner->GetParagraphCount()==1)
{
// if we only have one paragraph we check if it is empty
XubString aStr( mpOutliner->GetText( mpOutliner->GetParagraph( 0 ) ) );
rtl::OUString aStr(mpOutliner->GetText(mpOutliner->GetParagraph(0)));
if(!aStr.Len())
if (aStr.isEmpty())
{
// its empty, so we have to force the outliner to initialise itself
mpOutliner->SetText( String(), mpOutliner->GetParagraph( 0 ) );

View File

@ -231,8 +231,8 @@ void FixedText::ImplDraw( OutputDevice* pDev, sal_uLong nDrawFlags,
{
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
WinBits nWinStyle = GetStyle();
XubString aText( GetText() );
sal_uInt16 nTextStyle = FixedText::ImplGetTextStyle( nWinStyle );
rtl::OUString aText( GetText() );
sal_uInt16 nTextStyle = FixedText::ImplGetTextStyle( nWinStyle );
Point aPos = rPos;
if ( nWinStyle & WB_EXTRAOFFSET )