diff options
Diffstat (limited to 'Swiften/VCards/VCardStorage.cpp')
-rw-r--r-- | Swiften/VCards/VCardStorage.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Swiften/VCards/VCardStorage.cpp b/Swiften/VCards/VCardStorage.cpp index fefea83..2a4f04c 100644 --- a/Swiften/VCards/VCardStorage.cpp +++ b/Swiften/VCards/VCardStorage.cpp @@ -1,13 +1,13 @@ /* - * Copyright (c) 2010-2013 Remko Tronçon - * Licensed under the GNU General Public License v3. - * See Documentation/Licenses/GPLv3.txt for more information. + * Copyright (c) 2010-2016 Isode Limited. + * All rights reserved. + * See the COPYING file for more information. */ #include <Swiften/VCards/VCardStorage.h> -#include <Swiften/StringCodecs/Hexify.h> #include <Swiften/Crypto/CryptoProvider.h> +#include <Swiften/StringCodecs/Hexify.h> namespace Swift { @@ -18,13 +18,13 @@ VCardStorage::~VCardStorage() { } std::string VCardStorage::getPhotoHash(const JID& jid) const { - VCard::ref vCard = getVCard(jid); - if (vCard && !vCard->getPhoto().empty()) { - return Hexify::hexify(crypto->getSHA1Hash(vCard->getPhoto())); - } - else { - return ""; - } + VCard::ref vCard = getVCard(jid); + if (vCard && !vCard->getPhoto().empty()) { + return Hexify::hexify(crypto->getSHA1Hash(vCard->getPhoto())); + } + else { + return ""; + } } } |