From 44f984883fc6d29f26cae333661d5a0f47322956 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Mon, 15 Apr 2024 17:38:36 -0400 Subject: Some minor whitespace fixups We should really just get a clang-format config that's close enough and set that up instead. --- src/devicewidget.cc | 2 +- src/mainwindow.cc | 4 ++-- src/pavucontrol.cc | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/devicewidget.cc b/src/devicewidget.cc index b9b3b3c..e149ceb 100644 --- a/src/devicewidget.cc +++ b/src/devicewidget.cc @@ -271,7 +271,7 @@ void DeviceWidget::openRenamePopup(const Glib::VariantBase& parameter) { RenameWindow::RenameWindow(BaseObjectType* cobject, const Glib::RefPtr& x, const gchar* name, const gchar* key) : Gtk::ApplicationWindow(cobject), - deviceKey(key){ + deviceKey(key) { renameText = x->get_widget("renameText"); renameText->set_text(name); diff --git a/src/mainwindow.cc b/src/mainwindow.cc index 7dba1a5..9579dad 100644 --- a/src/mainwindow.cc +++ b/src/mainwindow.cc @@ -76,7 +76,7 @@ MainWindow::MainWindow(BaseObjectType* cobject, const Glib::RefPtr canRenameDevices(false), m_connected(false), m_config_filename(NULL) { - ca_context_create (&canberraContext); + ca_context_create(&canberraContext); ca_context_set_driver(canberraContext, "pulse"); cardsVBox = x->get_widget("cardsVBox"); @@ -286,7 +286,7 @@ static void set_icon_name_default(Gtk::Image *i, const char *name) { iconName = "gtk-missing-image"; break; } - iconName = iconName.substr(0,lastDashIndex); + iconName = iconName.substr(0, lastDashIndex); } i->set_from_icon_name(iconName.c_str()); } diff --git a/src/pavucontrol.cc b/src/pavucontrol.cc index 3ecbf2d..86d7ddd 100644 --- a/src/pavucontrol.cc +++ b/src/pavucontrol.cc @@ -67,8 +67,7 @@ void show_error(Gtk::Widget* widget, const char *txt) { Gtk::Window* window = Glib::wrap(w); window->present(); dialog->choose(*window, sigc::ptr_fun(show_error_finish)); - } - else { + } else { dialog->choose(sigc::ptr_fun(show_error_finish)); } } -- cgit v1.2.3