Bug 1538409 - followup 2 - back to original xpcom magic. rs=bustage-fix a=mkmelin THUNDERBIRD_73_0b2_BUILD1 THUNDERBIRD_73_0b2_RELEASE
authorMagnus Melin <mkmelin+mozilla@iki.fi>
Thu, 30 Jan 2020 22:14:31 +0200
changeset 37903 eb735b725d5f1af8008bc70b386c0611262d1916
parent 37902 aec74518a5251400527bb1f4f5dadc30de4ed4b8
child 37904 de76252b774a4538be82f6fc4ad718fa13cfacf9
push id397
push userclokep@gmail.com
push dateMon, 10 Feb 2020 21:16:13 +0000
reviewersbustage-fix, mkmelin
bugs1538409
Bug 1538409 - followup 2 - back to original xpcom magic. rs=bustage-fix a=mkmelin
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) {}