Bug 1315662 - Follow-up: reformat. rs=reformat DONTBUILD
authorJorg K <jorgk@jorgk.com>
Sat, 29 Jun 2019 09:23:04 +0200
changeset 35982 0e2572d4a88f1525e86de53027d4ac730164a600
parent 35981 c2eb3b629b42c7315b241707bf183151444e63df
child 35983 6f3db64fae5570292b31c3ef06ce1bf5f8fabf84
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersreformat
bugs1315662
Bug 1315662 - Follow-up: reformat. rs=reformat DONTBUILD
mailnews/compose/src/nsSmtpServer.cpp
mailnews/compose/src/nsSmtpServer.h
--- a/mailnews/compose/src/nsSmtpServer.cpp
+++ b/mailnews/compose/src/nsSmtpServer.cpp
@@ -102,22 +102,21 @@ nsresult nsSmtpServer::getPrefs() {
     rv = prefs->GetBranch(branchName.get(), getter_AddRefs(mDefPrefBranch));
     if (NS_FAILED(rv)) return rv;
   }
 
   return NS_OK;
 }
 
 // This function is intentionally called the same as in nsIMsgIncomingServer.
-nsresult
-nsSmtpServer::OnUserOrHostNameChanged(const nsACString& oldName,
-                                      const nsACString& newName,
-                                      bool hostnameChanged)
-{
-  // Reset password so that users are prompted for new password for the new user/host.
+nsresult nsSmtpServer::OnUserOrHostNameChanged(const nsACString &oldName,
+                                               const nsACString &newName,
+                                               bool hostnameChanged) {
+  // Reset password so that users are prompted for new password for the new
+  // user/host.
   (void)ForgetPassword();
 
   return NS_OK;
 }
 
 NS_IMETHODIMP
 nsSmtpServer::GetHostname(nsACString &aHostname) {
   nsCString result;
--- a/mailnews/compose/src/nsSmtpServer.h
+++ b/mailnews/compose/src/nsSmtpServer.h
@@ -25,17 +25,17 @@ class nsSmtpServer : public nsISmtpServe
 
  private:
   virtual ~nsSmtpServer();
   nsCString mKey;
   nsCOMPtr<nsIPrefBranch> mPrefBranch;
   nsCOMPtr<nsIPrefBranch> mDefPrefBranch;
 
   nsresult getPrefs();
-  void getIntPrefWithDefault(const char *prefName, int32_t *val,
+  void getIntPrefWithDefault(const char* prefName, int32_t* val,
                              int32_t defval);
   nsresult GetPasswordWithoutUI();
   nsCString GetServerURIInternal(const bool aIncludeUsername);
   nsresult OnUserOrHostNameChanged(const nsACString& oldName,
                                    const nsACString& newName,
                                    bool hostnameChanged);
   nsString m_password;
   bool m_logonFailed;