qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r980441 - /qpid/trunk/qpid/cpp/src/qpid/messaging/AddressParser.cpp
Date Thu, 29 Jul 2010 13:18:49 GMT
Author: gsim
Date: Thu Jul 29 13:18:48 2010
New Revision: 980441

URL: http://svn.apache.org/viewvc?rev=980441&view=rev
Log:
QPID-2768: allow '/' after name in address without an explicit subject

Modified:
    qpid/trunk/qpid/cpp/src/qpid/messaging/AddressParser.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/messaging/AddressParser.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/messaging/AddressParser.cpp?rev=980441&r1=980440&r2=980441&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/messaging/AddressParser.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/messaging/AddressParser.cpp Thu Jul 29 13:18:48 2010
@@ -42,11 +42,8 @@ bool AddressParser::parse(Address& addre
         address.setName(name);
         if (readChar('/')) {
             std::string subject;
-            if (readSubject(subject)) {
-                address.setSubject(subject);
-            } else {
-                return error("Expected subject after /");
-            }
+            readSubject(subject);
+            address.setSubject(subject);
         }
         if (readChar(';')) {
             Variant options = Variant::Map();



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


Mime
View raw message