Bug 1439883 - Port Bug 1435671: NS_MutateURI::Apply() is no longer templated. rs=bustage-fix
authorJorg K <jorgk@jorgk.com>
Wed, 21 Feb 2018 13:49:32 +0100
changeset 31150 30d95f2b12ff504202500db80310533effeac2d0
parent 31149 91311b1d6aa3bddd427858cb7f8c149a81c71a92
child 31151 d2ebf88f37f15a4210df79b71f35a96216002696
push id383
push userclokep@gmail.com
push dateMon, 07 May 2018 21:52:48 +0000
reviewersbustage-fix
bugs1439883, 1435671
Bug 1439883 - Port Bug 1435671: NS_MutateURI::Apply() is no longer templated. rs=bustage-fix
mailnews/compose/src/nsMsgSend.cpp
--- a/mailnews/compose/src/nsMsgSend.cpp
+++ b/mailnews/compose/src/nsMsgSend.cpp
@@ -2051,19 +2051,19 @@ nsMsgComposeAndSend::AddCompFieldLocalAt
           if (m_attachments[newLoc]->m_type.IsEmpty())
           {
             nsresult  rv = NS_OK;
             nsCOMPtr<nsIMIMEService> mimeFinder (do_GetService(NS_MIMESERVICE_CONTRACTID, &rv));
             if (NS_SUCCEEDED(rv) && mimeFinder)
             {
               nsCOMPtr<nsIURL> fileUrl;
               rv = NS_MutateURI(NS_STANDARDURLMUTATOR_CONTRACTID)
-                     .Apply<nsIURLMutator>(&nsIURLMutator::SetFileName,
+                     .Apply(NS_MutatorMethod(&nsIURLMutator::SetFileName,
                                            m_attachments[newLoc]->m_realName,
-                                           nullptr)
+                                           nullptr))
                      .Finalize(fileUrl);
               if (NS_SUCCEEDED(rv))
               {
                 nsAutoCString fileExt;
                 // First try using the real file name.
                 rv = fileUrl->GetFileExtension(fileExt);
                 if (NS_SUCCEEDED(rv) && !fileExt.IsEmpty()) {
                   nsAutoCString type;