summaryrefslogtreecommitdiff
path: root/unity-shared
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2016-09-01 11:08:11 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2016-09-01 11:08:11 +0200
commitffce645ba07aeda3dcc81409e1c84fbaf73ee391 (patch)
tree26bd441d149d44310af6beff93e5886bdfc31b49 /unity-shared
parent886944d2dadf8c2a7237624a17cdf97623a5de6f (diff)
SystemdWrapper: even more curly brakets removal
(bzr r4153.9.38)
Diffstat (limited to 'unity-shared')
-rw-r--r--unity-shared/SystemdWrapper.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/unity-shared/SystemdWrapper.cpp b/unity-shared/SystemdWrapper.cpp
index beda1ef45..37d2838bb 100644
--- a/unity-shared/SystemdWrapper.cpp
+++ b/unity-shared/SystemdWrapper.cpp
@@ -43,11 +43,7 @@ private:
SystemdWrapper::Impl::Impl(bool test)
{
- std::string busname = "org.freedesktop.systemd1";
- if (test) {
- busname = "com.canonical.Unity.Test.Systemd";
- }
-
+ auto const& busname = test ? "org.freedesktop.systemd1" : "com.canonical.Unity.Test.Systemd";
systemd_proxy_ = std::make_shared<unity::glib::DBusProxy>(busname, "/org/freedesktop/systemd1", "org.freedesktop.systemd1.Manager");
}