Bug 1266033: Fix white-space errors in |nsDBusHandlerApp|, r=bz
authorThomas Zimmermann <tdz@users.sourceforge.net>
Thu, 21 Apr 2016 11:24:23 +0200
changeset 332133 43730c92b372c49ed462a733ff517a41037a282b
parent 332132 bb3bf463c0ec5fae4dcb8469a1cd127d40ad8f59
child 332134 e65d8d0f3f5dade3c6b804ec5ff399965cbfe30b
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1266033
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1266033: Fix white-space errors in |nsDBusHandlerApp|, r=bz
uriloader/exthandler/nsDBusHandlerApp.cpp
--- a/uriloader/exthandler/nsDBusHandlerApp.cpp
+++ b/uriloader/exthandler/nsDBusHandlerApp.cpp
@@ -6,17 +6,17 @@
 
 #include  <dbus/dbus.h>
 #include "nsDBusHandlerApp.h"
 #include "nsIURI.h"
 #include "nsIClassInfoImpl.h"
 #include "nsCOMPtr.h"
 #include "nsCExternalHandlerService.h"
 
-// XXX why does nsMIMEInfoImpl have a threadsafe nsISupports?  do we need one 
+// XXX why does nsMIMEInfoImpl have a threadsafe nsISupports?  do we need one
 // here too?
 NS_IMPL_CLASSINFO(nsDBusHandlerApp, nullptr, 0, NS_DBUSHANDLERAPP_CID)
 NS_IMPL_ISUPPORTS_CI(nsDBusHandlerApp, nsIDBusHandlerApp, nsIHandlerApp)
 
 ////////////////////////////////////////////////////////////////////////////////
 //// nsIHandlerApp
 
 NS_IMETHODIMP nsDBusHandlerApp::GetName(nsAString& aName)
@@ -36,96 +36,96 @@ NS_IMETHODIMP nsDBusHandlerApp::SetDetai
   mDetailedDescription.Assign(aDescription);
 
   return NS_OK;
 }
 
 NS_IMETHODIMP nsDBusHandlerApp::GetDetailedDescription(nsAString& aDescription)
 {
   aDescription.Assign(mDetailedDescription);
-  
+
   return NS_OK;
 }
 
 NS_IMETHODIMP
 nsDBusHandlerApp::Equals(nsIHandlerApp *aHandlerApp, bool *_retval)
 {
   NS_ENSURE_ARG_POINTER(aHandlerApp);
-  
+
   // If the handler app isn't a dbus handler app, then it's not the same app.
   nsCOMPtr<nsIDBusHandlerApp> dbusHandlerApp = do_QueryInterface(aHandlerApp);
   if (!dbusHandlerApp) {
     *_retval = false;
     return NS_OK;
   }
   nsAutoCString service;
   nsAutoCString method;
-  
+
   nsresult rv = dbusHandlerApp->GetService(service);
   if (NS_FAILED(rv)) {
     *_retval = false;
     return NS_OK;
   }
   rv = dbusHandlerApp->GetMethod(method);
   if (NS_FAILED(rv)) {
     *_retval = false;
     return NS_OK;
   }
-  
+
   *_retval = service.Equals(mService) && method.Equals(mMethod);
   return NS_OK;
 }
 
 NS_IMETHODIMP
 nsDBusHandlerApp::LaunchWithURI(nsIURI *aURI,
                                 nsIInterfaceRequestor *aWindowContext)
 {
   nsAutoCString spec;
   nsresult rv = aURI->GetAsciiSpec(spec);
   NS_ENSURE_SUCCESS(rv,rv);
-  const char* uri = spec.get(); 
-  
+  const char* uri = spec.get();
+
   DBusError err;
   dbus_error_init(&err);
-  
+
   DBusConnection  *connection;
   connection = dbus_bus_get(DBUS_BUS_SESSION, &err);
-  if (dbus_error_is_set(&err)) { 
-    dbus_error_free(&err); 
+  if (dbus_error_is_set(&err)) {
+    dbus_error_free(&err);
     return NS_ERROR_FAILURE;
   }
-  if (nullptr == connection) { 
-    return NS_ERROR_FAILURE; 
+  if (nullptr == connection) {
+    return NS_ERROR_FAILURE;
   }
   dbus_connection_set_exit_on_disconnect(connection,false);
-  
+
   DBusMessage* msg;
-  msg = dbus_message_new_method_call(mService.get(), 
-                                     mObjpath.get(), 
-                                     mInterface.get(), 
+  msg = dbus_message_new_method_call(mService.get(),
+                                     mObjpath.get(),
+                                     mInterface.get(),
                                      mMethod.get());
-  
+
   if (!msg) {
     return NS_ERROR_FAILURE;
   }
   dbus_message_set_no_reply(msg, true);
-  
+
   DBusMessageIter iter;
   dbus_message_iter_init_append(msg, &iter);
   dbus_message_iter_append_basic(&iter, DBUS_TYPE_STRING, &uri);
-  
+
   if (dbus_connection_send(connection, msg, nullptr)) {
     dbus_connection_flush(connection);
     dbus_message_unref(msg);
   } else {
     dbus_message_unref(msg);
     return NS_ERROR_FAILURE;
   }
   return NS_OK;
-  
+
 }
 
 ////////////////////////////////////////////////////////////////////////////////
 //// nsIDBusHandlerApp
 
 NS_IMETHODIMP nsDBusHandlerApp::GetService(nsACString & aService)
 {
   aService.Assign(mService);