From: Remi Gacogne Date: Thu, 16 Jul 2026 07:12:34 +0000 (+0200) Subject: pdnsexception: Stop importing various namespaces X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=911b73e58f3719b2fa520fc82284e65bcd0d15cb;p=thirdparty%2Fpdns.git pdnsexception: Stop importing various namespaces Signed-off-by: Remi Gacogne --- diff --git a/pdns/pdnsexception.hh b/pdns/pdnsexception.hh index 3417fe177b..d2a04cd265 100644 --- a/pdns/pdnsexception.hh +++ b/pdns/pdnsexception.hh @@ -20,25 +20,23 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #pragma once -#include +#include #include -#include "namespaces.hh" - -//! Generic Exception thrown +//! Generic Exception thrown class PDNSException { public: PDNSException() : reason("Unspecified") {}; - PDNSException(string r) : + PDNSException(std::string r) : reason(std::move(r)) {}; - string reason; //! Print this to tell the user what went wrong + std::string reason; //! Print this to tell the user what went wrong }; class TimeoutException : public PDNSException { public: TimeoutException() : PDNSException() {} - TimeoutException(const string& r) : PDNSException(r) {} + TimeoutException(const std::string& r) : PDNSException(r) {} };