summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-12-22 11:25:29 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-12-22 12:27:09 +0100
commit5b272bf4b94e1dac427472a07b241e2ae95d8730 (patch)
tree81c3b5eb43721a65e13ad822be0fc8062b80dc0e /shell
parentdce1b34a62ad204f995f626064ccf6b71e59c9f5 (diff)
fix indent vs other functions
Change-Id: I276dc315404932288da3addaf23418ab3e4deb65 Reviewed-on: https://gerrit.libreoffice.org/46967 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/source/sessioninstall/SyncDbusSessionHelper.cxx37
1 files changed, 19 insertions, 18 deletions
diff --git a/shell/source/sessioninstall/SyncDbusSessionHelper.cxx b/shell/source/sessioninstall/SyncDbusSessionHelper.cxx
index a1211f77b410..ce3cb8aefca0 100644
--- a/shell/source/sessioninstall/SyncDbusSessionHelper.cxx
+++ b/shell/source/sessioninstall/SyncDbusSessionHelper.cxx
@@ -154,24 +154,25 @@ void SyncDbusSessionHelper::InstallPrinterDrivers(
request("InstallPrinteDrivers", xid, files, interaction);
}
- void SAL_CALL SyncDbusSessionHelper::IsInstalled( const OUString& sPackagename, const OUString& sInteraction, sal_Bool& o_isInstalled )
- {
- const OString sPackagenameAscii = OUStringToOString(sPackagename, RTL_TEXTENCODING_ASCII_US);
- const OString sInteractionAscii = OUStringToOString(sInteraction, RTL_TEXTENCODING_ASCII_US);
- std::shared_ptr<GDBusProxy> proxy(lcl_GetPackageKitProxy("Query"), GObjectDeleter<GDBusProxy>());
- GErrorWrapper error;
- std::shared_ptr<GVariant> result(g_dbus_proxy_call_sync (proxy.get(),
- "IsInstalled",
- g_variant_new ("(ss)",
- sPackagenameAscii.getStr(),
- sInteractionAscii.getStr()),
- G_DBUS_CALL_FLAGS_NONE,
- -1, /* timeout */
- nullptr, /* cancellable */
- &error.getRef()),GVariantDeleter());
- if(result.get())
- o_isInstalled = bool(g_variant_get_boolean(g_variant_get_child_value(result.get(),0)));
- }
+void SAL_CALL SyncDbusSessionHelper::IsInstalled( const OUString& sPackagename, const OUString& sInteraction, sal_Bool& o_isInstalled )
+{
+ const OString sPackagenameAscii = OUStringToOString(sPackagename, RTL_TEXTENCODING_ASCII_US);
+ const OString sInteractionAscii = OUStringToOString(sInteraction, RTL_TEXTENCODING_ASCII_US);
+ std::shared_ptr<GDBusProxy> proxy(lcl_GetPackageKitProxy("Query"), GObjectDeleter<GDBusProxy>());
+ GErrorWrapper error;
+ std::shared_ptr<GVariant> result(g_dbus_proxy_call_sync (proxy.get(),
+ "IsInstalled",
+ g_variant_new ("(ss)",
+ sPackagenameAscii.getStr(),
+ sInteractionAscii.getStr()),
+ G_DBUS_CALL_FLAGS_NONE,
+ -1, /* timeout */
+ nullptr, /* cancellable */
+ &error.getRef()),GVariantDeleter());
+ if(result.get())
+ o_isInstalled = bool(g_variant_get_boolean(g_variant_get_child_value(result.get(),0)));
+}
+
}}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */