Bug 1538409 - followup 2 - back to original xpcom magic. rs=bustage-fix
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Thu, 30 Jan 2020 22:14:31 +0200
changeset 38047 8da7b1c071396ffd740a495f86817df41d23fc68
parent 38046 8d28ca0db7afacba7856b84f3a3488af3c352055
child 38048 779c55ffd47b1ced2db5ba5397c4c42b9300ad47
push id398
push userclokep@gmail.com
push dateMon, 09 Mar 2020 19:10:28 +0000
reviewersbustage-fix
bugs1538409
Bug 1538409 - followup 2 - back to original xpcom magic. rs=bustage-fix
mailnews/local/src/nsPop3Protocol.cpp
--- a/mailnews/local/src/nsPop3Protocol.cpp
+++ b/mailnews/local/src/nsPop3Protocol.cpp
@@ -373,18 +373,25 @@ nsresult nsPop3Protocol::MarkMsgForHost(
 
   if (changed) net_pop3_write_state(uidlHost, mailDirectory);
   net_pop3_free_state(uidlHost);
   return NS_OK;
 }
 
 // nsPop3Protocol class implementation
 
-NS_IMPL_ISUPPORTS_INHERITED(nsPop3Protocol, nsMsgProtocol,
-                            msgIOAuth2ModuleListener, nsIMsgAsyncPromptListener, nsIProtocolProxyCallback)
+NS_IMPL_ADDREF_INHERITED(nsPop3Protocol, nsMsgProtocol)
+NS_IMPL_RELEASE_INHERITED(nsPop3Protocol, nsMsgProtocol)
+
+NS_INTERFACE_MAP_BEGIN(nsPop3Protocol)
+  NS_INTERFACE_MAP_ENTRY(nsIPop3Protocol)
+  NS_INTERFACE_MAP_ENTRY(msgIOAuth2ModuleListener)
+  NS_INTERFACE_MAP_ENTRY(nsIMsgAsyncPromptListener)
+  NS_INTERFACE_MAP_ENTRY(nsIProtocolProxyCallback)
+NS_INTERFACE_MAP_END_INHERITING(nsMsgProtocol)
 
 nsPop3Protocol::nsPop3Protocol(nsIURI *aURL)
     : nsMsgProtocol(aURL),
       m_bytesInMsgReceived(0),
       m_totalFolderSize(0),
       m_totalDownloadSize(0),
       m_totalBytesReceived(0),
       m_pop3ConData(nullptr) {}