diff options
Diffstat (limited to 'kopete/protocols/jabber/jingle/libjingle/talk/xmllite/qname.h')
-rw-r--r-- | kopete/protocols/jabber/jingle/libjingle/talk/xmllite/qname.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kopete/protocols/jabber/jingle/libjingle/talk/xmllite/qname.h b/kopete/protocols/jabber/jingle/libjingle/talk/xmllite/qname.h index b1bcec61..dff04cd9 100644 --- a/kopete/protocols/jabber/jingle/libjingle/talk/xmllite/qname.h +++ b/kopete/protocols/jabber/jingle/libjingle/talk/xmllite/qname.h @@ -33,30 +33,30 @@ namespace buzz { -class QName +class TQName { public: - explicit QName(); - QName(const QName & qname) : data_(qname.data_) { data_->AddRef(); } - explicit QName(bool add, const std::string & ns, const char * local); - explicit QName(bool add, const std::string & ns, const std::string & local); - explicit QName(const std::string & ns, const char * local); - explicit QName(const std::string & mergedOrLocal); - QName & operator=(const QName & qn) { + explicit TQName(); + TQName(const TQName & qname) : data_(qname.data_) { data_->AddRef(); } + explicit TQName(bool add, const std::string & ns, const char * local); + explicit TQName(bool add, const std::string & ns, const std::string & local); + explicit TQName(const std::string & ns, const char * local); + explicit TQName(const std::string & mergedOrLocal); + TQName & operator=(const TQName & qn) { qn.data_->AddRef(); data_->Release(); data_ = qn.data_; return *this; } - ~QName(); + ~TQName(); const std::string & Namespace() const { return data_->namespace_; } const std::string & LocalPart() const { return data_->localPart_; } std::string Merged() const; - int Compare(const QName & other) const; - bool operator==(const QName & other) const; - bool operator!=(const QName & other) const { return !operator==(other); } - bool operator<(const QName & other) const { return Compare(other) < 0; } + int Compare(const TQName & other) const; + bool operator==(const TQName & other) const; + bool operator!=(const TQName & other) const { return !operator==(other); } + bool operator<(const TQName & other) const { return Compare(other) < 0; } class Data { public: |