use nullptr instead of NULL

This commit is contained in:
john30
2018-05-06 14:54:52 +02:00
parent dc12476bc1
commit 1c17f7c466
41 changed files with 625 additions and 626 deletions
+4 -4
View File
@@ -100,10 +100,10 @@ class HttpClient {
* @param uri the URI string.
* @param body the optional body to send.
* @param response the response body from the server (or the HTTP header on error).
* @param time optional pointer to a @a time_t value for storing the modification time of the file, or NULL.
* @param time optional pointer to a @a time_t value for storing the modification time of the file, or nullptr.
* @return true on success, false on error.
*/
bool get(const string& uri, const string& body, string& response, time_t* time = NULL);
bool get(const string& uri, const string& body, string& response, time_t* time = nullptr);
/**
* Execute a POST request.
@@ -119,10 +119,10 @@ class HttpClient {
* @param uri the URI string.
* @param body the optional body to send.
* @param response the response body from the server (or the HTTP header on error).
* @param time optional pointer to a @a time_t value for storing the modification time of the file, or NULL.
* @param time optional pointer to a @a time_t value for storing the modification time of the file, or nullptr.
* @return true on success, false on error.
*/
bool request(const string& method, const string& uri, const string& body, string& response, time_t* time = NULL);
bool request(const string& method, const string& uri, const string& body, string& response, time_t* time = nullptr);
private:
/**