diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-08-29 12:51:45 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-08-29 13:30:18 (GMT) |
commit | 0091fcc571758791442f82ece2a72444b6fe79cf (patch) | |
tree | 807f20a4047604a87f56d247d8ad7180489fe82b /Swiften/Parser | |
parent | 901f620b6ccabde19ef460368028fa0464aa56c5 (diff) | |
download | swift-0091fcc571758791442f82ece2a72444b6fe79cf.zip swift-0091fcc571758791442f82ece2a72444b6fe79cf.tar.bz2 |
Added Stanza Ack Requester & Responder.
Diffstat (limited to 'Swiften/Parser')
-rw-r--r-- | Swiften/Parser/StanzaAckParser.cpp | 1 | ||||
-rw-r--r-- | Swiften/Parser/UnitTest/StanzaAckParserTest.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/Swiften/Parser/StanzaAckParser.cpp b/Swiften/Parser/StanzaAckParser.cpp index 62e912b..d85eb9b 100644 --- a/Swiften/Parser/StanzaAckParser.cpp +++ b/Swiften/Parser/StanzaAckParser.cpp @@ -20,7 +20,6 @@ void StanzaAckParser::handleStartElement(const String&, const String&, const Att getElementGeneric()->setHandledStanzasCount(boost::lexical_cast<int>(handledStanzasString.getUTF8String())); } catch (const boost::bad_lexical_cast &) { - getElementGeneric()->setHandledStanzasCount(-1); } } ++depth; diff --git a/Swiften/Parser/UnitTest/StanzaAckParserTest.cpp b/Swiften/Parser/UnitTest/StanzaAckParserTest.cpp index 39e67a7..b90af6e 100644 --- a/Swiften/Parser/UnitTest/StanzaAckParserTest.cpp +++ b/Swiften/Parser/UnitTest/StanzaAckParserTest.cpp @@ -28,7 +28,7 @@ class StanzaAckParserTest : public CppUnit::TestFixture { CPPUNIT_ASSERT(parser.parse("<a h=\"12\" xmlns=\"urn:xmpp:sm:2\"/>")); CPPUNIT_ASSERT(testling.getElementGeneric()->isValid()); - CPPUNIT_ASSERT_EQUAL(12, testling.getElementGeneric()->getHandledStanzasCount()); + CPPUNIT_ASSERT_EQUAL(12U, testling.getElementGeneric()->getHandledStanzasCount()); } void testParse_Invalid() { |