diff options
author | Noel Grandin <noel@peralex.com> | 2013-09-25 12:18:11 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-10-01 10:08:40 +0200 |
commit | b879adc316d6628fad7be35e758052860171bcf2 (patch) | |
tree | 1f65afe787b1cc680bcd055a90e878047f395052 /uui/source/fltdlg.cxx | |
parent | c82d932510c88a12b260b1684522efbc69f07b26 (diff) |
convert UUI module from String to OUString
Change-Id: I0dfcdb0b95112b5ee18b05d0c496059292be65c4
Diffstat (limited to 'uui/source/fltdlg.cxx')
-rw-r--r-- | uui/source/fltdlg.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/uui/source/fltdlg.cxx b/uui/source/fltdlg.cxx index ebedfbc9ee39..5ffbec2459c5 100644 --- a/uui/source/fltdlg.cxx +++ b/uui/source/fltdlg.cxx @@ -76,7 +76,7 @@ FilterDialog::FilterDialog( Window* pParentWindow , @onerror - @threadsafe no *//*-*************************************************************************************************************/ -void FilterDialog::SetURL( const String& sURL ) +void FilterDialog::SetURL( const OUString& sURL ) { // convert it and use given pure string as fallback if conversion failed m_ftURL.SetText( impl_buildUIFileName(sURL) ); @@ -142,8 +142,8 @@ bool FilterDialog::AskForFilter( FilterNameListPtr& pSelectedItem ) { if( ModalDialog::Execute() == RET_OK ) { - String sEntry = m_lbFilters.GetSelectEntry(); - if( sEntry.Len() > 0 ) + OUString sEntry = m_lbFilters.GetSelectEntry(); + if( !sEntry.isEmpty() ) { int nPos = m_lbFilters.GetSelectEntryPos(); if( nPos < (int)(m_pFilterNames->size()) ) @@ -183,7 +183,7 @@ class StringCalculator : public ::cppu::WeakImplHelper1< ::com::sun::star::util: sal_Int32 SAL_CALL queryStringWidth( const OUString& sString ) throw( ::com::sun::star::uno::RuntimeException ) { - return (sal_Int32)(m_pDevice->GetTextWidth(String(sString))); + return (sal_Int32)(m_pDevice->GetTextWidth(sString)); } private: @@ -204,7 +204,7 @@ class StringCalculator : public ::cppu::WeakImplHelper1< ::com::sun::star::util: @onerror We return given name without any changes. @threadsafe no *//*-*************************************************************************************************************/ -String FilterDialog::impl_buildUIFileName( const String& sName ) +OUString FilterDialog::impl_buildUIFileName( const OUString& sName ) { OUString sShortName( sName ); |