]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
pdnsexception: Stop importing various namespaces
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 16 Jul 2026 07:12:34 +0000 (09:12 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 16 Jul 2026 07:12:34 +0000 (09:12 +0200)
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
pdns/pdnsexception.hh

index 3417fe177bd4af7a945325cb14433c2f07fd8ba3..d2a04cd265a78fd0a289ad80a6bd944154d8e3c2 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 #pragma once
-#include<string>
+#include <string>
 #include <utility>
 
-#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) {}
 };