diff options
Diffstat (limited to 'src/Uri.cpp')
-rw-r--r-- | src/Uri.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Uri.cpp b/src/Uri.cpp index 73bdfc3..cb44c1e 100644 --- a/src/Uri.cpp +++ b/src/Uri.cpp @@ -1217,8 +1217,19 @@ namespace Uri { }; Uri::~Uri() = default; + Uri::Uri(const Uri& other) + : impl_(new Impl) + { + *this = other; + } Uri::Uri(Uri&&) = default; Uri& Uri::operator=(Uri&&) = default; + Uri& Uri::operator=(const Uri& other) { + if (this != &other) { + *impl_ = *other.impl_; + } + return *this; + } Uri::Uri() : impl_(new Impl) |