diff options
author | Noel Grandin <noel@peralex.com> | 2013-09-25 10:53:15 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-10-01 10:08:39 +0200 |
commit | 4805c2f499d66c3397958efed1663ad1ac16e1cf (patch) | |
tree | 47d88d249f095dd723153e9adeff42c2d20443b5 /padmin/source/helper.cxx | |
parent | ab63cac8cf1bb39d68d4faf99bbce99a5751067a (diff) |
convert padmin module from String to OUString
Change-Id: I1533ceef08ac3e330604115e0831fb01477aa958
Diffstat (limited to 'padmin/source/helper.cxx')
-rw-r--r-- | padmin/source/helper.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/padmin/source/helper.cxx b/padmin/source/helper.cxx index a4a72d2d2c73..023923a52472 100644 --- a/padmin/source/helper.cxx +++ b/padmin/source/helper.cxx @@ -99,15 +99,15 @@ void padmin::FindFiles( const OUString& rDirectory, ::std::list< OUString >& rRe if( aStatus.getFileType() == FileStatus::Regular || aStatus.getFileType() == FileStatus::Link ) { - String aFileName = aStatus.getFileName(); + OUString aFileName = aStatus.getFileName(); int nToken = comphelper::string::getTokenCount(rSuffixes, ';'); while( nToken-- ) { OUString aSuffix = rSuffixes.getToken( nToken, ';' ); - if( aFileName.Len() > aSuffix.getLength()+1 ) + if( aFileName.getLength() > aSuffix.getLength()+1 ) { - OUString aExtension = aFileName.Copy( aFileName.Len()-aSuffix.getLength() ); - if( aFileName.GetChar( aFileName.Len()-aSuffix.getLength()-1 ) == '.' && + OUString aExtension = aFileName.copy( aFileName.getLength()-aSuffix.getLength() ); + if( aFileName[ aFileName.getLength()-aSuffix.getLength()-1 ] == '.' && aExtension.equalsIgnoreAsciiCase( aSuffix ) ) { rResult.push_back( aFileName ); @@ -180,7 +180,7 @@ long DelListBox::Notify( NotifyEvent& rEvent ) * QueryString */ -QueryString::QueryString( Window* pParent, String& rQuery, String& rRet, const ::std::list< String >& rChoices ) : +QueryString::QueryString( Window* pParent, OUString& rQuery, OUString& rRet, const ::std::list< OUString >& rChoices ) : ModalDialog( pParent, PaResId( RID_STRINGQUERYDLG ) ), m_aOKButton( this, PaResId( RID_STRQRY_BTN_OK ) ), m_aCancelButton( this, PaResId( RID_STRQRY_BTN_CANCEL ) ), @@ -196,7 +196,7 @@ QueryString::QueryString( Window* pParent, String& rQuery, String& rRet, const : { m_aComboBox.SetText( m_rReturnValue ); m_aComboBox.InsertEntry( m_rReturnValue ); - for( ::std::list<String>::const_iterator it = rChoices.begin(); it != rChoices.end(); ++it ) + for( ::std::list<OUString>::const_iterator it = rChoices.begin(); it != rChoices.end(); ++it ) m_aComboBox.InsertEntry( *it ); m_aEdit.Show( sal_False ); m_bUseEdit = false; @@ -235,7 +235,7 @@ sal_Bool padmin::AreYouSure( Window* pParent, int nRid ) if( nRid == -1 ) nRid = RID_YOU_SURE; QueryBox aQueryBox( pParent, WB_YES_NO | WB_DEF_NO, - String( PaResId( nRid ) ) ); + OUString( PaResId( nRid ) ) ); return aQueryBox.Execute() == RET_NO ? sal_False : sal_True; } |