mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
IOS/Socket: Delete WiiSocket's copy constructor
If the copy assignment operator is deleted, then the copy constructor should be deleted as well, otherwise it's a hole in the API where copies can be made (and if this were an intended case, it should be documented). So we delete the copy constructor and explicitly default the move assignment and move constructor to signify this is intended to be a move-only type.
This commit is contained in:
parent
ad575a1556
commit
ad17d9a979
@ -175,8 +175,11 @@ class WiiSocket
|
||||
{
|
||||
public:
|
||||
WiiSocket() = default;
|
||||
WiiSocket(const WiiSocket&) = delete;
|
||||
WiiSocket(WiiSocket&&) = default;
|
||||
~WiiSocket();
|
||||
void operator=(WiiSocket const&) = delete;
|
||||
WiiSocket& operator=(const WiiSocket&) = delete;
|
||||
WiiSocket& operator=(WiiSocket&&) = default;
|
||||
|
||||
private:
|
||||
struct sockop
|
||||
|
Loading…
Reference in New Issue
Block a user