summaryrefslogtreecommitdiff
path: root/src/httpfetch.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/httpfetch.h')
-rw-r--r--src/httpfetch.h36
1 files changed, 17 insertions, 19 deletions
diff --git a/src/httpfetch.h b/src/httpfetch.h
index f57ed8789..d64b80b66 100644
--- a/src/httpfetch.h
+++ b/src/httpfetch.h
@@ -77,25 +77,23 @@ struct HTTPFetchResult
unsigned long caller;
unsigned long request_id;
- HTTPFetchResult()
- {
- succeeded = false;
- timeout = false;
- response_code = 0;
- data = "";
- caller = HTTPFETCH_DISCARD;
- request_id = 0;
- }
-
- HTTPFetchResult(const HTTPFetchRequest &fetch_request)
- {
- succeeded = false;
- timeout = false;
- response_code = 0;
- data = "";
- caller = fetch_request.caller;
- request_id = fetch_request.request_id;
- }
+ HTTPFetchResult() :
+ succeeded(false),
+ timeout(false),
+ response_code(0),
+ data(""),
+ caller(HTTPFETCH_DISCARD),
+ request_id(0)
+ {}
+
+ HTTPFetchResult(const HTTPFetchRequest &fetch_request) :
+ succeeded(false),
+ timeout(false),
+ response_code(0),
+ data(""),
+ caller(fetch_request.caller),
+ request_id(fetch_request.request_id)
+ {}
};