summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/avatars.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-01-03 19:34:25 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-01-03 19:34:39 +0300
commita0ad33a285bac4d7f0ad3f29c9edc925e8c1429e (patch)
tree68f2f839a567fa98f7941de08cf9bfb0ad37c3e9 /protocols/FacebookRM/src/avatars.cpp
parent8fd0e627d37cd4aef97f2c49e5b042e86e184544 (diff)
code cleaning
Diffstat (limited to 'protocols/FacebookRM/src/avatars.cpp')
-rw-r--r--protocols/FacebookRM/src/avatars.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/FacebookRM/src/avatars.cpp b/protocols/FacebookRM/src/avatars.cpp
index 5a8fd44786..91837ce2d8 100644
--- a/protocols/FacebookRM/src/avatars.cpp
+++ b/protocols/FacebookRM/src/avatars.cpp
@@ -25,7 +25,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
bool FacebookProto::GetDbAvatarInfo(PROTO_AVATAR_INFORMATION &pai, std::string *url)
{
ptrA id(getStringA(pai.hContact, FACEBOOK_KEY_ID));
- if (id == NULL)
+ if (id == nullptr)
return false;
if (url) {
@@ -62,10 +62,10 @@ void FacebookProto::CheckAvatarChange(MCONTACT hContact, const std::string &imag
// Check for avatar change
ptrA old_name(getStringA(hContact, FACEBOOK_KEY_AVATAR));
- bool update_required = (old_name == NULL || image_name.compare(old_name) != 0);
+ bool update_required = (old_name == nullptr || image_name.compare(old_name) != 0);
// TODO: Remove this in some newer version
- if (old_name == NULL) {
+ if (old_name == nullptr) {
// Remove AvatarURL value, which was used in previous versions of plugin
delSetting(hContact, "AvatarURL");
}