defaults are good enough
and protected isn't necessary Change-Id: I6219632fe1da36d484864c2500e9ac14978f2cb8
This commit is contained in:
parent
9a30cb2161
commit
ea86f1ca5c
@ -27,19 +27,14 @@
|
|||||||
|
|
||||||
class SOT_DLLPUBLIC FileList
|
class SOT_DLLPUBLIC FileList
|
||||||
{
|
{
|
||||||
::std::vector< OUString > aStrList;
|
std::vector< OUString > aStrList;
|
||||||
|
|
||||||
protected:
|
private:
|
||||||
|
|
||||||
// Liste loeschen;
|
// Liste loeschen;
|
||||||
void ClearAll();
|
void clear() { aStrList.clear(); }
|
||||||
|
|
||||||
public:
|
public:
|
||||||
FileList() {};
|
|
||||||
~FileList();
|
|
||||||
|
|
||||||
// Zuweisungsoperator
|
|
||||||
FileList& operator=( const FileList& rFileList );
|
|
||||||
|
|
||||||
// Im-/Export
|
// Im-/Export
|
||||||
SOT_DLLPUBLIC friend SvStream& ReadFileList( SvStream& rIStm, FileList& rFileList );
|
SOT_DLLPUBLIC friend SvStream& ReadFileList( SvStream& rIStm, FileList& rFileList );
|
||||||
|
@ -24,35 +24,6 @@
|
|||||||
#include <osl/diagnose.h>
|
#include <osl/diagnose.h>
|
||||||
#include <osl/thread.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
|
|* Stream-Operatoren
|
||||||
@ -67,7 +38,7 @@ FileList& FileList::operator=( const FileList& rFileList )
|
|||||||
resolved by the Windows clipboard bridge.*/
|
resolved by the Windows clipboard bridge.*/
|
||||||
SvStream& ReadFileList( SvStream& rIStm, FileList& rFileList )
|
SvStream& ReadFileList( SvStream& rIStm, FileList& rFileList )
|
||||||
{
|
{
|
||||||
rFileList.ClearAll();
|
rFileList.clear();
|
||||||
|
|
||||||
OUStringBuffer sBuf(512);
|
OUStringBuffer sBuf(512);
|
||||||
sal_uInt16 c;
|
sal_uInt16 c;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user