summaryrefslogtreecommitdiff
path: root/louloulibs/xmpp/jid.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'louloulibs/xmpp/jid.hpp')
-rw-r--r--louloulibs/xmpp/jid.hpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/louloulibs/xmpp/jid.hpp b/louloulibs/xmpp/jid.hpp
index e2ee586..5ff5a4f 100644
--- a/louloulibs/xmpp/jid.hpp
+++ b/louloulibs/xmpp/jid.hpp
@@ -11,6 +11,11 @@ class Jid
public:
explicit Jid(const std::string& jid);
+ Jid(const Jid&) = delete;
+ Jid(Jid&&) = delete;
+ Jid& operator=(const Jid&) = delete;
+ Jid& operator=(Jid&&) = delete;
+
std::string domain;
std::string local;
std::string resource;
@@ -23,12 +28,6 @@ public:
{
return this->local + "@" + this->domain + "/" + this->resource;
}
-
-private:
- Jid(const Jid&) = delete;
- Jid(Jid&&) = delete;
- Jid& operator=(const Jid&) = delete;
- Jid& operator=(Jid&&) = delete;
};
/**