From 09b288a36eaa6b3ac6a1eac8d4a91e5fd2621ffb Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Sun, 21 Aug 2016 19:16:00 +0000 Subject: [PATCH] use empty as we always init the var --- external/3rd/library/webAPI/webAPI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/3rd/library/webAPI/webAPI.cpp b/external/3rd/library/webAPI/webAPI.cpp index 721a8065..e95068e5 100644 --- a/external/3rd/library/webAPI/webAPI.cpp +++ b/external/3rd/library/webAPI/webAPI.cpp @@ -64,7 +64,7 @@ bool webAPI::submit(const int &reqType, const int &getPost, const int &respType) { if (reqType == DTYPE::JSON) // json request { - if (!this->requestData.is_null()) + if (!this->requestData.empty()) { // serialize our data into sRequest this->sRequest = this->requestData.dump();