summaryrefslogtreecommitdiffstats
path: root/CAN-binder/low-can-binding/utils
diff options
context:
space:
mode:
Diffstat (limited to 'CAN-binder/low-can-binding/utils')
-rw-r--r--CAN-binder/low-can-binding/utils/socketcan.cpp9
-rw-r--r--CAN-binder/low-can-binding/utils/socketcan.hpp2
2 files changed, 2 insertions, 9 deletions
diff --git a/CAN-binder/low-can-binding/utils/socketcan.cpp b/CAN-binder/low-can-binding/utils/socketcan.cpp
index ffd46151..1f7aaa61 100644
--- a/CAN-binder/low-can-binding/utils/socketcan.cpp
+++ b/CAN-binder/low-can-binding/utils/socketcan.cpp
@@ -31,17 +31,10 @@ namespace utils
: socket_{INVALID_SOCKET}
{}
- /// @brief Construct a socket by copying an existing one.
- socketcan_t::socketcan_t(const socketcan_t& s)
- : socket_{s.socket_}
- {}
-
/// @brief Construct a socket by moving an existing one.
socketcan_t::socketcan_t(socketcan_t&& s)
: socket_{s.socket_}
- {
- s.socket_ = INVALID_SOCKET;
- }
+ {}
socketcan_t& socketcan_t::operator=(const socketcan_t& s)
{
diff --git a/CAN-binder/low-can-binding/utils/socketcan.hpp b/CAN-binder/low-can-binding/utils/socketcan.hpp
index 1e7cd3cb..8300e6b5 100644
--- a/CAN-binder/low-can-binding/utils/socketcan.hpp
+++ b/CAN-binder/low-can-binding/utils/socketcan.hpp
@@ -33,7 +33,7 @@ namespace utils
{
public:
socketcan_t();
- socketcan_t(const socketcan_t& s);
+ socketcan_t(const socketcan_t& s) = delete;
socketcan_t(socketcan_t&&);
socketcan_t& operator=(const socketcan_t& s);
virtual ~socketcan_t();