From: Arvin Schnell Date: Mon, 4 Nov 2024 09:21:16 +0000 (+0100) Subject: - move functions to namespace snapper X-Git-Tag: v0.12.0~19^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F949%2Fhead;p=thirdparty%2Fsnapper.git - move functions to namespace snapper --- 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); +}