qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r1075380 - in /qpid/trunk/qpid/cpp: include/qpid/types/Variant.h src/qpid/types/Variant.cpp
Date Mon, 28 Feb 2011 15:35:28 GMT
Author: gsim
Date: Mon Feb 28 15:35:28 2011
New Revision: 1075380

URL: http://svn.apache.org/viewvc?rev=1075380&view=rev
Log:
QPID-3089: make getTypeName() a public method

Modified:
    qpid/trunk/qpid/cpp/include/qpid/types/Variant.h
    qpid/trunk/qpid/cpp/src/qpid/types/Variant.cpp

Modified: qpid/trunk/qpid/cpp/include/qpid/types/Variant.h
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/include/qpid/types/Variant.h?rev=1075380&r1=1075379&r2=1075380&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/include/qpid/types/Variant.h (original)
+++ qpid/trunk/qpid/cpp/include/qpid/types/Variant.h Mon Feb 28 15:35:28 2011
@@ -60,6 +60,8 @@ enum VariantType {
     VAR_UUID
 };
 
+std::string getTypeName(VariantType type);
+
 class VariantImpl;
 
 /**

Modified: qpid/trunk/qpid/cpp/src/qpid/types/Variant.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/types/Variant.cpp?rev=1075380&r1=1075379&r2=1075380&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/types/Variant.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/types/Variant.cpp Mon Feb 28 15:35:28 2011
@@ -108,7 +108,6 @@ class VariantImpl
     } value;
     std::string encoding;//optional encoding for variable length data
 
-    std::string getTypeName(VariantType type) const;
     template<class T> T convertFromString() const
     {
         std::string* s = reinterpret_cast<std::string*>(value.v);
@@ -582,7 +581,7 @@ const std::string& VariantImpl::getStrin
 void VariantImpl::setEncoding(const std::string& s) { encoding = s; }
 const std::string& VariantImpl::getEncoding() const { return encoding; }
 
-std::string VariantImpl::getTypeName(VariantType type) const
+std::string getTypeName(VariantType type)
 {
     switch (type) {
       case VAR_VOID: return "void";



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message