-
-
Notifications
You must be signed in to change notification settings - Fork 231
clazy fixes #576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
clazy fixes #576
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -48,8 +48,8 @@ class LIBTORRENT_EXPORT Block { | |||||
| const BlockList* parent() const { return m_parent; } | ||||||
| void set_parent(BlockList* p) { m_parent = p; } | ||||||
|
|
||||||
| const Piece& piece() const { return m_piece; } | ||||||
| void set_piece(const Piece& p) { m_piece = p; } | ||||||
| auto piece() const { return m_piece; } | ||||||
| void set_piece(Piece p) { m_piece = p; } | ||||||
|
|
||||||
| uint32_t index() const { return m_piece.index(); } | ||||||
|
|
||||||
|
|
@@ -89,7 +89,7 @@ class LIBTORRENT_EXPORT Block { | |||||
| BlockFailed* failed_list() { return m_failedList; } | ||||||
| void set_failed_list(BlockFailed* f) { m_failedList = f; } | ||||||
|
|
||||||
| static void create_dummy(BlockTransfer* transfer, PeerInfo* peerInfo, const Piece& piece); | ||||||
| static void create_dummy(BlockTransfer* transfer, PeerInfo* peerInfo, Piece piece); | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| // If the queued or transfering is already removed from the block it | ||||||
| // will just delete the object. Made static so it can be called when | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -27,7 +27,7 @@ class LIBTORRENT_EXPORT BlockList : private std::vector<Block> { | |||||
|
|
||||||
| using base_type::operator[]; | ||||||
|
|
||||||
| BlockList(const Piece& piece, uint32_t blockLength); | ||||||
| BlockList(Piece piece, uint32_t blockLength); | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| ~BlockList(); | ||||||
| BlockList(const BlockList&) = delete; | ||||||
| BlockList& operator=(const BlockList&) = delete; | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.