diff options
Diffstat (limited to 'LocalFile.cpp')
-rw-r--r-- | LocalFile.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/LocalFile.cpp b/LocalFile.cpp index ee5bf74..c21988e 100644 --- a/LocalFile.cpp +++ b/LocalFile.cpp @@ -28,10 +28,10 @@ const std::string LocalFile::read() { return *this->content; if (this->file == nullptr) - throw Exception("File read after destructor\n"); + throw Exception("FileStrategy read after destructor\n"); if (!this->file->is_open()) - throw Exception("File read after close\n"); + throw Exception("FileStrategy read after close\n"); this->content = new std::string( std::istreambuf_iterator<char>(*this->file), @@ -59,5 +59,5 @@ LocalFile * LocalFile::clone() const { return new LocalFile(this); } -LocalFile::LocalFile(const LocalFile *) : File() { } +LocalFile::LocalFile(const LocalFile *) : FileStrategy() { } |