From bbf190fc4274322c5f11ee18a6dfacc39b3701f0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 5 Mar 2023 08:48:28 +0100 Subject: [PATCH] lib/curl/Multi: add `noexcept` --- src/lib/curl/Multi.hxx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/lib/curl/Multi.hxx b/src/lib/curl/Multi.hxx index 97c2c39fa..9ca42cd91 100644 --- a/src/lib/curl/Multi.hxx +++ b/src/lib/curl/Multi.hxx @@ -1,5 +1,5 @@ /* - * Copyright 2016-2020 Max Kellermann + * Copyright 2011-2023 Max Kellermann * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -27,15 +27,13 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef CURL_MULTI_HXX -#define CURL_MULTI_HXX +#pragma once #include #include -#include #include -#include +#include /** * An OO wrapper for a "CURLM*" (a libCURL "multi" handle). @@ -101,7 +99,7 @@ public: throw std::runtime_error(curl_multi_strerror(code)); } - CURLMsg *InfoRead() { + CURLMsg *InfoRead() noexcept { int msgs_in_queue; return curl_multi_info_read(handle, &msgs_in_queue); } @@ -127,5 +125,3 @@ public: return Wait(timeout.count()); } }; - -#endif