diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-09 12:02:28 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-09 12:12:22 +0000 |
commit | ea86f1ca5c627da45da49e20f27ef112febc41e8 (patch) | |
tree | 0590319de1339d6677bf472b2d6dcd6a40a11cd6 | |
parent | 9a30cb2161506e003f14592d83075ab9d30516c1 (diff) |
defaults are good enough
and protected isn't necessary
Change-Id: I6219632fe1da36d484864c2500e9ac14978f2cb8
-rw-r--r-- | include/sot/filelist.hxx | 11 | ||||
-rw-r--r-- | sot/source/base/filelist.cxx | 31 |
2 files changed, 4 insertions, 38 deletions
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 <osl/diagnose.h> #include <osl/thread.h> -/************************************************************************* -|* -|* 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; |