diff --git a/include/sot/filelist.hxx b/include/sot/filelist.hxx index 1939f7164368..e12fb363f63d 100644 --- a/include/sot/filelist.hxx +++ b/include/sot/filelist.hxx @@ -27,19 +27,14 @@ class SOT_DLLPUBLIC FileList { - ::std::vector< OUString > aStrList; + std::vector< OUString > aStrList; -protected: +private: // Liste loeschen; - void ClearAll(); + void clear() { aStrList.clear(); } public: - FileList() {}; - ~FileList(); - - // Zuweisungsoperator - FileList& operator=( const FileList& rFileList ); // Im-/Export SOT_DLLPUBLIC friend SvStream& ReadFileList( SvStream& rIStm, FileList& rFileList ); diff --git a/sot/source/base/filelist.cxx b/sot/source/base/filelist.cxx index b22e2c62acda..8760d7aaa730 100644 --- a/sot/source/base/filelist.cxx +++ b/sot/source/base/filelist.cxx @@ -24,35 +24,6 @@ #include #include -/************************************************************************* -|* -|* FileList - Ctor/Dtor -|* -\*************************************************************************/ - -FileList::~FileList() -{ - ClearAll(); -} - -void FileList::ClearAll() -{ - aStrList.clear(); -} - -/************************************************************************* -|* -|* FileList - Zuweisungsoperator -|* -\*************************************************************************/ - -FileList& FileList::operator=( const FileList& rFileList ) -{ - for (const auto & i : rFileList.aStrList) - aStrList.push_back( i ); - return *this; -} - /****************************************************************************** |* |* Stream-Operatoren @@ -67,7 +38,7 @@ FileList& FileList::operator=( const FileList& rFileList ) resolved by the Windows clipboard bridge.*/ SvStream& ReadFileList( SvStream& rIStm, FileList& rFileList ) { - rFileList.ClearAll(); + rFileList.clear(); OUStringBuffer sBuf(512); sal_uInt16 c;