Fix compilation errors (1st try).

This commit is contained in:
vng 2010-12-29 23:47:34 +02:00 committed by Alex Zolotarev
parent e04540f8b6
commit b506aacbb6
3 changed files with 9 additions and 2 deletions

View file

@ -43,7 +43,7 @@ protected:
class FilesContainerR : public FilesContainerBase
{
typedef public FilesContainerBase base_type;
typedef FilesContainerBase base_type;
FileReader m_source;
@ -55,7 +55,7 @@ public:
class FilesContainerW : public FilesContainerBase
{
typedef public FilesContainerBase base_type;
typedef FilesContainerBase base_type;
string m_name;

View file

@ -7,6 +7,11 @@
#include "../../base/start_mem_debug.hpp"
FileWriter::FileWriter(FileWriter & rhs)
{
m_pFileData.swap(rhs.m_pFileData);
}
FileWriter::FileWriter(string const & fileName, FileWriter::Op op)
: m_pFileData(new FileData(fileName, static_cast<FileData::Op>(op)))
{

View file

@ -22,6 +22,8 @@ public:
// Seek should not be called, if file is opened for append.
OP_APPEND = 3};
FileWriter(FileWriter & rhs);
explicit FileWriter(string const & fileName, Op operation = OP_WRITE_TRUNCATE);
~FileWriter();