scope_guard/modules: Rename scope_guard to ScopeGuard

Using pascal case for the class name keeps it more consistent with the
majority of the other class names.
This commit is contained in:
Tamino Bauknecht
2023-10-23 14:59:46 +02:00
parent dd1de3efbf
commit 68dfd6aa3a
6 changed files with 15 additions and 15 deletions

View File

@ -59,7 +59,7 @@ void Host::nameVanished(const Glib::RefPtr<Gio::DBus::Connection>& conn, const G
void Host::proxyReady(GObject* src, GAsyncResult* res, gpointer data) {
GError* error = nullptr;
waybar::util::scope_guard error_deleter([error]() {
waybar::util::ScopeGuard error_deleter([error]() {
if (error != nullptr) {
g_error_free(error);
}
@ -81,7 +81,7 @@ void Host::proxyReady(GObject* src, GAsyncResult* res, gpointer data) {
void Host::registerHost(GObject* src, GAsyncResult* res, gpointer data) {
GError* error = nullptr;
waybar::util::scope_guard error_deleter([error]() {
waybar::util::ScopeGuard error_deleter([error]() {
if (error != nullptr) {
g_error_free(error);
}

View File

@ -31,7 +31,7 @@ Watcher::~Watcher() {
void Watcher::busAcquired(const Glib::RefPtr<Gio::DBus::Connection>& conn, Glib::ustring name) {
GError* error = nullptr;
waybar::util::scope_guard error_deleter([error]() {
waybar::util::ScopeGuard error_deleter([error]() {
if (error) {
g_error_free(error);
}