Skip to content

Commit

Permalink
Cleaning up A::File::Reader and Writer
Browse files Browse the repository at this point in the history
  • Loading branch information
Epixu committed Oct 8, 2024
1 parent 191c6bf commit ee90e89
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions include/Langulus/IO.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,7 @@ namespace Langulus::A
virtual ~Reader() {};

Reader(File* f)
: mFile {f} {}

Reader(Langulus::Abandoned<Reader>&& rhs)
: mFile {rhs.Nest(rhs->mFile)}
, mProgress {rhs->mProgress} {}
: mFile {f} {}

virtual auto Read(Many&) -> Offset = 0;

Expand All @@ -106,13 +102,8 @@ namespace Langulus::A
virtual ~Writer() {};

Writer(File* f, bool append)
: mFile {f}
, mAppend {append} {}

Writer(Langulus::Abandoned<Writer>&& rhs)
: mFile {rhs.Nest(rhs->mFile)}
, mProgress {rhs->mProgress}
, mAppend {rhs->mAppend} {}
: mFile {f}
, mAppend{append} {}

virtual auto Write(const Many&) -> Offset = 0;

Expand Down

0 comments on commit ee90e89

Please sign in to comment.