diff options
author | Herbert Dürr <hdu@apache.org> | 2013-11-28 15:52:32 +0000 |
---|---|---|
committer | Herbert Dürr <hdu@apache.org> | 2013-11-28 15:52:32 +0000 |
commit | 1a15756db5173403fcdbc3ad522c3a76e88a7082 (patch) | |
tree | 915c55a6ea8920d9bf44229129cdfcd2679a3914 /svx/source | |
parent | b8354e209b88f3375635f20542096ed1dac24ba8 (diff) |
#i123068# remove implicit conversions from rtl strings to their elements
Notes
Notes:
prefer: 112bdf84d684590e042725c7173e059b4afa2f83
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/accessibility/ChildrenManagerImpl.cxx | 4 | ||||
-rw-r--r-- | svx/source/fmcomp/fmgridcl.cxx | 2 | ||||
-rw-r--r-- | svx/source/fmcomp/gridcell.cxx | 4 | ||||
-rw-r--r-- | svx/source/form/filtnav.cxx | 2 | ||||
-rw-r--r-- | svx/source/form/fmsrcimp.cxx | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/svx/source/accessibility/ChildrenManagerImpl.cxx b/svx/source/accessibility/ChildrenManagerImpl.cxx index c40198c8f653..6e0e1791de15 100644 --- a/svx/source/accessibility/ChildrenManagerImpl.cxx +++ b/svx/source/accessibility/ChildrenManagerImpl.cxx @@ -151,8 +151,8 @@ uno::Reference<XAccessible> // Check wether the given index is valid. if (nIndex < 0 || (unsigned long)nIndex >= maVisibleChildren.size()) throw lang::IndexOutOfBoundsException ( - ::rtl::OUString::createFromAscii( - "no accessible child with index ") + nIndex, + ::rtl::OUString::createFromAscii( "no accessible child with index ") + + ::rtl::OUString::valueOf( nIndex, 10), mxParent); return GetChild (maVisibleChildren[nIndex],nIndex); diff --git a/svx/source/fmcomp/fmgridcl.cxx b/svx/source/fmcomp/fmgridcl.cxx index d2c49b4db320..008708a0002e 100644 --- a/svx/source/fmcomp/fmgridcl.cxx +++ b/svx/source/fmcomp/fmgridcl.cxx @@ -1648,7 +1648,7 @@ void FmGridControl::InitColumnsByModels(const Reference< ::com::sun::star::conta Reference< ::com::sun::star::beans::XPropertySet > xCol; ::cppu::extractInterface(xCol, xColumns->getByIndex(i)); - aName = (const sal_Unicode*)::comphelper::getString(xCol->getPropertyValue(FM_PROP_LABEL)); + aName = ::comphelper::getString( xCol->getPropertyValue(FM_PROP_LABEL)).getStr(); aWidth = xCol->getPropertyValue(FM_PROP_WIDTH); sal_Int32 nWidth = 0; diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx index 11e730dace95..8ed1d305d3b5 100644 --- a/svx/source/fmcomp/gridcell.cxx +++ b/svx/source/fmcomp/gridcell.cxx @@ -1539,7 +1539,7 @@ String DbFormattedField::GetFormatText(const Reference< ::com::sun::star::sdb::X { // Hier kann ich nicht mit einem double arbeiten, da das Feld mir keines liefern kann. // Also einfach den Text vom ::com::sun::star::util::NumberFormatter in die richtige ::com::sun::star::form::component::Form brinden lassen. - aText = (const sal_Unicode*)_rxField->getString(); + aText = _rxField->getString().getStr(); if (_rxField->wasNull()) return aText; ((FormattedField*)m_pPainter)->SetTextFormatted(aText); @@ -2957,7 +2957,7 @@ sal_Bool DbFilterField::commitControl() { sal_Int16 nPos = (sal_Int16)static_cast<ListBox*>(m_pWindow)->GetSelectEntryPos(); if ( ( nPos >= 0 ) && ( nPos < m_aValueList.getLength() ) ) - aText = (const sal_Unicode*)m_aValueList.getConstArray()[nPos]; + aText = m_aValueList.getConstArray()[nPos]; } if (m_aText != aText) diff --git a/svx/source/form/filtnav.cxx b/svx/source/form/filtnav.cxx index 839af8133ea2..cf27de6623ac 100644 --- a/svx/source/form/filtnav.cxx +++ b/svx/source/form/filtnav.cxx @@ -948,7 +948,7 @@ void FmFilterModel::SetTextForItem(FmFilterItem* pItem, const ::rtl::OUString& r m_pAdapter->setText(nParentPos, pItem, rText); - if (!rText) + if( rText.isEmpty() ) Remove(pItem); else { diff --git a/svx/source/form/fmsrcimp.cxx b/svx/source/form/fmsrcimp.cxx index 4a67588d6d3c..b7507f2e12de 100644 --- a/svx/source/form/fmsrcimp.cxx +++ b/svx/source/form/fmsrcimp.cxx @@ -254,7 +254,7 @@ sal_Bool FmSearchEngine::MoveCursor() #if OSL_DEBUG_LEVEL > 0 String sDebugMessage; sDebugMessage.AssignAscii("FmSearchEngine::MoveCursor : catched a DatabaseException ("); - sDebugMessage += (const sal_Unicode*)e.SQLState; + sDebugMessage += e.SQLState.getStr(); sDebugMessage.AppendAscii(") !"); DBG_ERROR(ByteString(sDebugMessage, RTL_TEXTENCODING_ASCII_US).GetBuffer()); #endif @@ -265,7 +265,7 @@ sal_Bool FmSearchEngine::MoveCursor() #if OSL_DEBUG_LEVEL > 0 UniString sDebugMessage; sDebugMessage.AssignAscii("FmSearchEngine::MoveCursor : catched an Exception ("); - sDebugMessage += (const sal_Unicode*)e.Message; + sDebugMessage += e.Message.getStr(); sDebugMessage.AppendAscii(") !"); DBG_ERROR(ByteString(sDebugMessage, RTL_TEXTENCODING_ASCII_US).GetBuffer()); #endif |