diff options
| author | Remko Tronçon <git@el-tramo.be> | 2011-06-03 14:03:37 (GMT) | 
|---|---|---|
| committer | Remko Tronçon <git@el-tramo.be> | 2011-06-03 14:03:37 (GMT) | 
| commit | 00200cfc0df5b616eb2eb48e5bb252f970808d15 (patch) | |
| tree | 38388cd3c2c7dc9cacf725a8253f521cc090afc5 /Swiften/Parser/StreamResumeParser.cpp | |
| parent | 21fda3308975201eeebeacd98e2b587ef4448862 (diff) | |
| download | swift-00200cfc0df5b616eb2eb48e5bb252f970808d15.zip swift-00200cfc0df5b616eb2eb48e5bb252f970808d15.tar.bz2  | |
Make StreamResume(d) element use unsigned int for stanza count.
Diffstat (limited to 'Swiften/Parser/StreamResumeParser.cpp')
| -rw-r--r-- | Swiften/Parser/StreamResumeParser.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Parser/StreamResumeParser.cpp b/Swiften/Parser/StreamResumeParser.cpp index f54dcf0..cb1a61d 100644 --- a/Swiften/Parser/StreamResumeParser.cpp +++ b/Swiften/Parser/StreamResumeParser.cpp @@ -21,7 +21,7 @@ void StreamResumeParser::handleStartElement(const std::string&, const std::strin  		boost::optional<std::string> handledStanzasCount = attributes.getAttributeValue("h");  		if (handledStanzasCount) {  			try { -				getElementGeneric()->setHandledStanzasCount(boost::lexical_cast<int>(*handledStanzasCount)); +				getElementGeneric()->setHandledStanzasCount(boost::lexical_cast<unsigned int>(*handledStanzasCount));  			}  			catch (const boost::bad_lexical_cast &) {  			}  | 
 Swift