diff options
| author | Joanna Hulboj <joanna.hulboj@isode.com> | 2019-09-25 07:54:06 (GMT) |
|---|---|---|
| committer | Joanna Hulboj <joanna.hulboj@isode.com> | 2019-09-25 07:54:06 (GMT) |
| commit | 6f5fa6a02eb7502a15afab70c91451b8142e2ac3 (patch) | |
| tree | b75c4d73eac6ec0f6a0bbd7ff449fb64e2d4ca30 /Swiften/Parser/ExpatParser.cpp | |
| parent | 23e2766dab6d4a3f6158eca7649cd36b644634d3 (diff) | |
| download | swift-6f5fa6a02eb7502a15afab70c91451b8142e2ac3.zip swift-6f5fa6a02eb7502a15afab70c91451b8142e2ac3.tar.bz2 | |
Remove duplicated arguments
Test-information:
Unit tests pass on Windows 10 and Ubuntu 18.04.1 LTS.
Change-Id: Icea837d91f28f47f7b0a90bc620b26c5567c8421
Diffstat (limited to 'Swiften/Parser/ExpatParser.cpp')
| -rw-r--r-- | Swiften/Parser/ExpatParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Parser/ExpatParser.cpp b/Swiften/Parser/ExpatParser.cpp index 6c3845a..32d4f53 100644 --- a/Swiften/Parser/ExpatParser.cpp +++ b/Swiften/Parser/ExpatParser.cpp @@ -61,19 +61,19 @@ static void handleStartElement(void* parser, const XML_Char* name, const XML_Cha AttributeMap attributeValues; const XML_Char** currentAttribute = attributes; while (*currentAttribute) { auto attribInfo = splitExpatInfo(*currentAttribute, NAMESPACE_SEPARATOR); attributeValues.addAttribute(attribInfo.name, attribInfo.uri, attribInfo.prefix, std::string(*(currentAttribute+1))); currentAttribute += 2; } auto* client = static_cast<XMLParser*>(parser)->getClient(); - client->handleStartElementPrefix(elemInfo.prefix, elemInfo.uri, elemInfo.name, elemInfo.name, elemInfo.uri, attributeValues); + client->handleStartElementPrefix(elemInfo.prefix, elemInfo.uri, elemInfo.name, attributeValues); client->handleStartElement(elemInfo.name, elemInfo.uri, attributeValues); } static void handleEndElement(void* parser, const XML_Char* name) { auto elemInfo = splitExpatInfo(name, NAMESPACE_SEPARATOR); static_cast<XMLParser*>(parser)->getClient()->handleEndElement(elemInfo.name, elemInfo.uri); } static void handleCharacterData(void* parser, const XML_Char* data, int len) { |
Swift