Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/libappimage/core/impl/PayloadIStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace appimage {
friend class TraversalType1;
friend class TraversalType2;

PayloadIStream() = default;
PayloadIStream() : std::istream(nullptr) {}

// Creating copies of this object is not allowed
PayloadIStream(PayloadIStream& other) = delete;
Expand Down
4 changes: 2 additions & 2 deletions src/libappimage/core/impl/StreambufType1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ StreambufType1::StreambufType1(archive* a, unsigned long size) : a(a), size(size
StreambufType1::StreambufType1(StreambufType1&& other) noexcept
: a(other.a), size(other.size), buffer(std::move(other.buffer)) {
// Reset the three read area pointers
setg(other._M_in_beg, other._M_in_cur, other._M_in_end);
setg(other.eback(), other.gptr(), other.egptr());
}

StreambufType1& StreambufType1::operator=(StreambufType1&& other) noexcept {
Expand All @@ -36,7 +36,7 @@ StreambufType1& StreambufType1::operator=(StreambufType1&& other) noexcept {
buffer = std::move(other.buffer);

// Reset the three read area pointers
setg(other._M_in_beg, other._M_in_cur, other._M_in_end);
setg(other.eback(), other.gptr(), other.egptr());

return *this;
}
4 changes: 2 additions & 2 deletions src/libappimage/core/impl/StreambufType2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ StreambufType2::StreambufType2(StreambufType2&& other) noexcept
: fs(other.fs), inode(other.inode), buffer(std::move(other.buffer)) {

// Reset the three read area pointers
setg(other._M_in_beg, other._M_in_cur, other._M_in_end);
setg(other.eback(), other.gptr(), other.egptr());
}

StreambufType2& StreambufType2::operator=(StreambufType2&& other) noexcept {
Expand All @@ -35,7 +35,7 @@ StreambufType2& StreambufType2::operator=(StreambufType2&& other) noexcept {
buffer = std::move(other.buffer);

// Reset the three read area pointers
setg(other._M_in_beg, other._M_in_cur, other._M_in_end);
setg(other.eback(), other.gptr(), other.egptr());
return *this;
}

Expand Down