diff options
author | Goraf <22941576+Goraf@users.noreply.github.com> | 2017-11-13 15:03:31 +0100 |
---|---|---|
committer | Goraf <22941576+Goraf@users.noreply.github.com> | 2017-11-13 15:07:33 +0100 |
commit | a7c24ca48995cf2bf436156302f96b91bf135409 (patch) | |
tree | 953835509ff1b778833e78fd7b74b05e05e77c84 /protocols/Twitter/src/contacts.cpp | |
parent | 591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff) |
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'protocols/Twitter/src/contacts.cpp')
-rw-r--r-- | protocols/Twitter/src/contacts.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Twitter/src/contacts.cpp b/protocols/Twitter/src/contacts.cpp index 9c9f6f4d50..762ccfb86c 100644 --- a/protocols/Twitter/src/contacts.cpp +++ b/protocols/Twitter/src/contacts.cpp @@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. void TwitterProto::AddToListWorker(void *pArg)
{
// TODO: what happens if there is an error?
- if (pArg == 0)
+ if (pArg == nullptr)
return;
char *name = static_cast<char*>(pArg);
@@ -70,7 +70,7 @@ void TwitterProto::UpdateInfoWorker(void *arg) }
UpdateAvatar(hContact, user.profile_image_url, true);
- ProtoBroadcastAck(hContact, ACKTYPE_GETINFO, ACKRESULT_SUCCESS, 0);
+ ProtoBroadcastAck(hContact, ACKTYPE_GETINFO, ACKRESULT_SUCCESS, nullptr);
}
int TwitterProto::GetInfo(MCONTACT hContact, int info_type)
@@ -102,7 +102,7 @@ struct search_query void TwitterProto::DoSearch(void *pArg)
{
- if (pArg == 0)
+ if (pArg == nullptr)
return;
search_query *query = static_cast<search_query*>(pArg);
|