From 0bfbe6771e665516960c5e8503ce000b307b1e90 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 11 Jan 2018 12:46:26 +0100 Subject: [PATCH] input/curl: un-inline constructor --- src/input/plugins/CurlInputPlugin.cxx | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/input/plugins/CurlInputPlugin.cxx b/src/input/plugins/CurlInputPlugin.cxx index f596b1eb2..13a44f9ad 100644 --- a/src/input/plugins/CurlInputPlugin.cxx +++ b/src/input/plugins/CurlInputPlugin.cxx @@ -77,12 +77,7 @@ class CurlInputStream final : public AsyncInputStream, CurlResponseHandler { public: CurlInputStream(EventLoop &event_loop, const char *_url, - Mutex &_mutex, Cond &_cond) - :AsyncInputStream(event_loop, _url, _mutex, _cond, - CURL_MAX_BUFFERED, - CURL_RESUME_AT), - icy(new IcyMetaDataParser()) { - } + Mutex &_mutex, Cond &_cond); ~CurlInputStream() noexcept; @@ -347,6 +342,16 @@ input_curl_finish() noexcept http_200_aliases = nullptr; } +inline +CurlInputStream::CurlInputStream(EventLoop &event_loop, const char *_url, + Mutex &_mutex, Cond &_cond) + :AsyncInputStream(event_loop, _url, _mutex, _cond, + CURL_MAX_BUFFERED, + CURL_RESUME_AT), + icy(new IcyMetaDataParser()) +{ +} + CurlInputStream::~CurlInputStream() noexcept { FreeEasyIndirect();