diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-12-22 11:25:29 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-12-22 12:27:09 +0100 |
commit | 5b272bf4b94e1dac427472a07b241e2ae95d8730 (patch) | |
tree | 81c3b5eb43721a65e13ad822be0fc8062b80dc0e /shell | |
parent | dce1b34a62ad204f995f626064ccf6b71e59c9f5 (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.cxx | 37 |
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: */ |