diff options
author | Joseph Powers <jpowers27@cox.net> | 2011-02-16 07:46:21 -0800 |
---|---|---|
committer | Joseph Powers <jpowers27@cox.net> | 2011-02-16 07:46:21 -0800 |
commit | 5d7d3782d33672dc49844d18369437006f0c5afd (patch) | |
tree | faae97dbc2d435db3573c9170e27145d6b8e8732 /unotools/source/ucbhelper/localfilehelper.cxx | |
parent | 58522fa86275ab2671314464d18bf706b9ee1797 (diff) |
Remove DECLARE_LIST( StringList_Impl, ::rtl::OUString* )
Diffstat (limited to 'unotools/source/ucbhelper/localfilehelper.cxx')
-rw-r--r-- | unotools/source/ucbhelper/localfilehelper.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/unotools/source/ucbhelper/localfilehelper.cxx b/unotools/source/ucbhelper/localfilehelper.cxx index d421ad3dd5f8..c7fdd3741a8e 100644 --- a/unotools/source/ucbhelper/localfilehelper.cxx +++ b/unotools/source/ucbhelper/localfilehelper.cxx @@ -38,9 +38,10 @@ #include <rtl/ustring.hxx> #include <osl/file.hxx> #include <tools/debug.hxx> -#include <tools/list.hxx> +//joep #include <tools/list.hxx> #include <tools/urlobj.hxx> #include <ucbhelper/content.hxx> +#include <vector> using namespace ::osl; using namespace ::com::sun::star::uno; @@ -172,7 +173,7 @@ sal_Bool LocalFileHelper::IsFileContent( const String& rName ) return ConvertURLToSystemPath( rName, aTmp ); } -DECLARE_LIST( StringList_Impl, ::rtl::OUString* ) +typedef ::std::vector< ::rtl::OUString* > StringList_Impl; ::com::sun::star::uno::Sequence < ::rtl::OUString > LocalFileHelper::GetFolderContents( const ::rtl::OUString& rFolder, sal_Bool bFolder ) { @@ -207,7 +208,7 @@ DECLARE_LIST( StringList_Impl, ::rtl::OUString* ) { ::rtl::OUString aId = xContentAccess->queryContentIdentifierString(); ::rtl::OUString* pFile = new ::rtl::OUString( aId ); - pFiles->Insert( pFile, LIST_APPEND ); + pFiles->push_back( pFile ); } } catch( ::com::sun::star::ucb::CommandAbortedException& ) @@ -224,12 +225,12 @@ DECLARE_LIST( StringList_Impl, ::rtl::OUString* ) if ( pFiles ) { - ULONG nCount = pFiles->Count(); + size_t nCount = pFiles->size(); Sequence < ::rtl::OUString > aRet( nCount ); ::rtl::OUString* pRet = aRet.getArray(); - for ( USHORT i = 0; i < nCount; ++i ) + for ( size_t i = 0; i < nCount; ++i ) { - ::rtl::OUString* pFile = pFiles->GetObject(i); + ::rtl::OUString* pFile = (*pFiles)[ i ]; pRet[i] = *( pFile ); delete pFile; } |