Bug 1493542 - Follow-up: remove needless .get() raw string access. r=me DONTBUILD
authorJorg K <jorgk@jorgk.com>
Sun, 14 Oct 2018 22:24:06 +0200
changeset 33367 9e7fc0d137ce573eb9d11818dde9d1e3adade04f
parent 33366 33c8749ebc80aeb154c6718bea9692516e4b0ba8
child 33368 8539fb6b4605326b58b7f2c5a4b54ed2234baad4
push id387
push userclokep@gmail.com
push dateMon, 10 Dec 2018 21:30:47 +0000
reviewersme
bugs1493542
Bug 1493542 - Follow-up: remove needless .get() raw string access. r=me DONTBUILD
mailnews/local/src/nsPop3Protocol.cpp
--- a/mailnews/local/src/nsPop3Protocol.cpp
+++ b/mailnews/local/src/nsPop3Protocol.cpp
@@ -2319,17 +2319,17 @@ int32_t nsPop3Protocol::SendPassword()
     char *base64Str = PL_Base64Encode(passwordUTF8.get(),
                                       passwordUTF8.Length(), nullptr);
     cmd.Adopt(base64Str);
   }
   else if (m_currentAuthMethod == POP3_HAS_AUTH_USER)
   {
     MOZ_LOG(POP3LOGMODULE, LogLevel::Debug, (POP3LOG("PASS password")));
     cmd = "PASS ";
-    cmd += passwordUTF8.get();
+    cmd += passwordUTF8;
   }
   else
   {
     MOZ_LOG(POP3LOGMODULE, LogLevel::Error,
             (POP3LOG("In nsPop3Protocol::SendPassword(), m_currentAuthMethod is %X, "
                      "but that is unexpected"), m_currentAuthMethod));
     return Error("pop3AuthInternalError");
   }