diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Serialiser.cpp | 5 | ||||
-rw-r--r-- | src/URI.cpp | 4 | ||||
-rw-r--r-- | src/World.cpp | 5 |
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; |