diff options
Diffstat (limited to 'Swiften/Parser')
-rw-r--r-- | Swiften/Parser/PayloadParsers/VCardParser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Swiften/Parser/PayloadParsers/VCardParser.cpp b/Swiften/Parser/PayloadParsers/VCardParser.cpp index 9640787..620a307 100644 --- a/Swiften/Parser/PayloadParsers/VCardParser.cpp +++ b/Swiften/Parser/PayloadParsers/VCardParser.cpp @@ -176,7 +176,7 @@ void VCardParser::handleEndElement(const std::string& element, const std::string currentAddress_.isPreferred = true; } else if (elementHierarchy == "/vCard/ADR/POBOX") { - currentAddress_.POBox = currentText_; + currentAddress_.poBox = currentText_; } else if (elementHierarchy == "/vCard/ADR/EXTADD") { currentAddress_.addressExtension = currentText_; @@ -197,7 +197,7 @@ void VCardParser::handleEndElement(const std::string& element, const std::string currentAddress_.country = currentText_; } else if (elementHierarchy == "/vCard/ADR") { - if (!currentAddress_.POBox.empty() || !currentAddress_.addressExtension.empty() || + if (!currentAddress_.poBox.empty() || !currentAddress_.addressExtension.empty() || !currentAddress_.street.empty() || !currentAddress_.locality.empty() || !currentAddress_.region.empty() || !currentAddress_.region.empty() || !currentAddress_.postalCode.empty() || !currentAddress_.country.empty()) { |