From 72235258063c42a7678150161ca3ada66f110c92 Mon Sep 17 00:00:00 2001 From: Arvin Schnell Date: Mon, 4 Nov 2024 10:21:16 +0100 Subject: [PATCH] - move functions to namespace snapper --- client/proxy/errors.cc | 7 ++++--- client/proxy/errors.h | 9 +++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/client/proxy/errors.cc b/client/proxy/errors.cc index c9c81f7e..bef7dd13 100644 --- a/client/proxy/errors.cc +++ b/client/proxy/errors.cc @@ -29,9 +29,8 @@ #include "errors.h" -using namespace std; -using namespace snapper; - +namespace snapper +{ void convert_exception(const DBus::ErrorException& e) @@ -121,3 +120,5 @@ error_description(const DBus::ErrorException& e) return sformat(_("Failure (%s)."), name.c_str()); } + +} diff --git a/client/proxy/errors.h b/client/proxy/errors.h index 0b6dc733..259bc167 100644 --- a/client/proxy/errors.h +++ b/client/proxy/errors.h @@ -21,9 +21,17 @@ */ +#include + #include "dbus/DBusConnection.h" +namespace snapper +{ + + using std::string; + + /** * Translate an DBus exception to the corresponding snapper exception * (iff such exists). Unfinished. @@ -40,3 +48,4 @@ convert_exception(const DBus::ErrorException& e) __attribute__ ((__noreturn__)); string error_description(const DBus::ErrorException& e); +}