From abe06a5fa6a7092a772cc372a054ba1f53c5616d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 4 Apr 2019 20:06:11 +0200 Subject: [PATCH] lib/curl/Init: add `noexcept` --- src/lib/curl/Init.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/curl/Init.hxx b/src/lib/curl/Init.hxx index b08196d86..d19655a31 100644 --- a/src/lib/curl/Init.hxx +++ b/src/lib/curl/Init.hxx @@ -50,11 +50,11 @@ public: CurlInit(const CurlInit &) = delete; CurlInit &operator=(const CurlInit &) = delete; - CurlGlobal &operator*() { + CurlGlobal &operator*() noexcept { return *instance; } - CurlGlobal *operator->() { + CurlGlobal *operator->() noexcept { return instance; } };