aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-01-13 10:38:58 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-01-13 10:38:58 +0100
commitf908d28e72887b68391a246ceb328cb52dcb2aaa (patch)
tree29c6c0ea90fb97bf80be75c7a3bf142576d0bafd /lib
parent6507610a4d36275c25336627a30db461229074b1 (diff)
downloaddabmod-f908d28e72887b68391a246ceb328cb52dcb2aaa.tar.gz
dabmod-f908d28e72887b68391a246ceb328cb52dcb2aaa.tar.bz2
dabmod-f908d28e72887b68391a246ceb328cb52dcb2aaa.zip
Make UdpPacket copyable
Diffstat (limited to 'lib')
-rw-r--r--lib/UdpSocket.cpp2
-rw-r--r--lib/UdpSocket.h10
2 files changed, 3 insertions, 9 deletions
diff --git a/lib/UdpSocket.cpp b/lib/UdpSocket.cpp
index ccdd7ed..981d713 100644
--- a/lib/UdpSocket.cpp
+++ b/lib/UdpSocket.cpp
@@ -2,7 +2,7 @@
Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Her Majesty the
Queen in Right of Canada (Communications Research Center Canada)
- Copyright (C) 2016
+ Copyright (C) 2017
Matthias P. Braendli, matthias.braendli@mpb.li
http://www.opendigitalradio.org
diff --git a/lib/UdpSocket.h b/lib/UdpSocket.h
index f62db1d..f51e87c 100644
--- a/lib/UdpSocket.h
+++ b/lib/UdpSocket.h
@@ -2,7 +2,7 @@
Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Her Majesty the
Queen in Right of Canada (Communications Research Center Canada)
- Copyright (C) 2016
+ Copyright (C) 2017
Matthias P. Braendli, matthias.braendli@mpb.li
http://www.opendigitalradio.org
@@ -24,8 +24,7 @@
along with ODR-DabMux. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef _UDPSOCKET
-#define _UDPSOCKET
+#pragma once
#ifdef HAVE_CONFIG_H
# include "config.h"
@@ -140,10 +139,6 @@ class UdpPacket
*/
UdpPacket();
UdpPacket(size_t initSize);
- UdpPacket(const UdpPacket& packet) = delete;
- const UdpPacket& operator=(const UdpPacket&) = delete;
- UdpPacket(const UdpPacket&& packet) = delete;
- const UdpPacket& operator=(const UdpPacket&&) = delete;
/** Give the pointer to data.
* @return The pointer
@@ -177,4 +172,3 @@ class UdpPacket
InetAddress address;
};
-#endif // _UDPSOCKET