summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-12-08 19:29:49 +0100
committerDavid Robillard <d@drobilla.net>2019-12-08 20:59:06 +0100
commit43c8fb044351af27b05bba20f36bbfce583ddeb2 (patch)
tree05178c43da65d4964d42bb55b91ca5c294fa894f /src
parent1920eb87c72de856e957fc3093f28cea62d72063 (diff)
downloadingen-43c8fb044351af27b05bba20f36bbfce583ddeb2.tar.gz
ingen-43c8fb044351af27b05bba20f36bbfce583ddeb2.tar.bz2
ingen-43c8fb044351af27b05bba20f36bbfce583ddeb2.zip
Cleanup: Add missing copy and assignment method declarations
Diffstat (limited to 'src')
-rw-r--r--src/Serialiser.cpp5
-rw-r--r--src/URI.cpp4
-rw-r--r--src/World.cpp5
3 files changed, 12 insertions, 2 deletions
diff --git a/src/Serialiser.cpp b/src/Serialiser.cpp
index ffcf4a84..a1a49533 100644
--- a/src/Serialiser.cpp
+++ b/src/Serialiser.cpp
@@ -65,6 +65,11 @@ struct Serialiser::Impl {
sratom_free(_sratom);
}
+ Impl(const Impl&) = delete;
+ Impl(Impl&&) = delete;
+ Impl& operator=(const Impl&) = delete;
+ Impl& operator=(Impl&&) = delete;
+
enum class Mode { TO_FILE, TO_STRING };
void start_to_file(const Raul::Path& root,
diff --git a/src/URI.cpp b/src/URI.cpp
index 7e3e1dba..5222c055 100644
--- a/src/URI.cpp
+++ b/src/URI.cpp
@@ -80,7 +80,7 @@ URI::operator=(const URI& uri)
return *this;
}
-URI::URI(URI&& uri)
+URI::URI(URI&& uri) noexcept
: _node(uri._node)
, _uri(uri._uri)
{
@@ -89,7 +89,7 @@ URI::URI(URI&& uri)
}
URI&
-URI::operator=(URI&& uri)
+URI::operator=(URI&& uri) noexcept
{
_node = uri._node;
_uri = uri._uri;
diff --git a/src/World.cpp b/src/World.cpp
index 8dbc0518..42cbff6f 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -162,6 +162,11 @@ public:
// Module libraries go out of scope and close here
}
+ Impl(const Impl&) = delete;
+ Impl(Impl&&) = delete;
+ Impl& operator=(const Impl&) = delete;
+ Impl& operator=(Impl&&) = delete;
+
using Modules = std::map<std::string, Module*>;
Modules modules;