diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-11-27 02:35:09 -0600 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-11-27 23:00:05 -0600 |
commit | c33019b36d613f951787ce9836e34d74bfbd6a1b (patch) | |
tree | 02487f1fda25b81ae43c50c69f2c12c4583aa23e /svtools/source/contnr | |
parent | 6922a0b190e3877cfae1ca08bfe86e0a010e9d86 (diff) |
String->OUString in svl urifilter and restrictedpaths
Change-Id: If11b8752c3aa21554c3ee06de07d63639695e284
Diffstat (limited to 'svtools/source/contnr')
-rw-r--r-- | svtools/source/contnr/fileview.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svtools/source/contnr/fileview.cxx b/svtools/source/contnr/fileview.cxx index 988827772174..5233af647014 100644 --- a/svtools/source/contnr/fileview.cxx +++ b/svtools/source/contnr/fileview.cxx @@ -138,27 +138,27 @@ namespace // ----------------------------------------------------------------------- -void FilterMatch::createWildCardFilterList(const String& _rFilterList,::std::vector< WildCard >& _rFilters) +void FilterMatch::createWildCardFilterList(const OUString& _rFilterList,::std::vector< WildCard >& _rFilters) { - if( _rFilterList.Len() ) + if( _rFilterList.getLength() ) { // filter is given - xub_StrLen nIndex = 0; + sal_Int32 nIndex = 0; OUString sToken; do { - sToken = _rFilterList.GetToken( 0, ';', nIndex ); + sToken = _rFilterList.getToken( 0, ';', nIndex ); if ( !sToken.isEmpty() ) { _rFilters.push_back( WildCard( sToken.toAsciiUpperCase() ) ); } } - while ( nIndex != STRING_NOTFOUND ); + while ( nIndex >= 0 ); } else { // no filter is given -> match all - _rFilters.push_back( WildCard(rtl::OUString("*")) ); + _rFilters.push_back( WildCard(OUString("*")) ); } } // class ViewTabListBox_Impl --------------------------------------------- |