diff options
author | Murray Cumming <murrayc@murrayc.com> | 2016-12-12 10:52:43 +0100 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2016-12-12 11:02:11 +0100 |
commit | 125eb4b37d7bf1e5d051621133be7a95f31978a1 (patch) | |
tree | a12d4c72d8a3bc321bae5f0cb4265f9dcda78e83 /gio/src/memoryinputstream.ccg | |
parent | 2fcbab6fbd14644e7005379cd6d716daefaef9b0 (diff) | |
download | glibmm-125eb4b37d7bf1e5d051621133be7a95f31978a1.tar.gz |
MemoryInputStream: SlotWithData: Make non-copyable
Noticed by cppcheck.
Diffstat (limited to 'gio/src/memoryinputstream.ccg')
-rw-r--r-- | gio/src/memoryinputstream.ccg | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gio/src/memoryinputstream.ccg b/gio/src/memoryinputstream.ccg index 9c5068c9..38126a42 100644 --- a/gio/src/memoryinputstream.ccg +++ b/gio/src/memoryinputstream.ccg @@ -30,6 +30,9 @@ public: { } + SlotWithData(const SlotWithData& src) = delete; + SlotWithData& operator=(const SlotWithData& src) = delete; + ~SlotWithData() { delete m_slot; } void operator()() { (*m_slot)(m_data); } |