Bug 1408214 - Port 1407103 to mailnews: Convert wstring attributes to AString in widget/nsIPrint*.idl. rs=bustage-fix
authorJorg K <jorgk@jorgk.com>
Fri, 13 Oct 2017 02:01:01 +0200
changeset 29171 10d1c5b3288570adb3139c17d456fae16b7a0a57
parent 29170 7749bbeaf9b068e3291be3b35e3b1b7a893e3e89
child 29172 241c48bcf9678d009c10c03a83b8bb3dcd92aee7
push id2068
push userclokep@gmail.com
push dateMon, 13 Nov 2017 19:02:14 +0000
treeherdercomm-beta@9c7e7ce8672b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage-fix
bugs1408214, 1407103
Bug 1408214 - Port 1407103 to mailnews: Convert wstring attributes to AString in widget/nsIPrint*.idl. rs=bustage-fix
mailnews/base/src/nsMsgPrintEngine.cpp
--- a/mailnews/base/src/nsMsgPrintEngine.cpp
+++ b/mailnews/base/src/nsMsgPrintEngine.cpp
@@ -592,17 +592,17 @@ nsMsgPrintEngine::PrintMsgWindow()
         mWebBrowserPrint->GetGlobalPrintSettings(getter_AddRefs(mPrintSettings));
       }
 
       // fix for bug #118887 and bug #176016
       // don't show the actual url when printing mail messages or addressbook cards.
       // for mail, it can review the salt.  for addrbook, it's a data:// url, which
       // means nothing to the end user.
       // needs to be " " and not "" or nullptr, otherwise, we'll still print the url
-      mPrintSettings->SetDocURL(u" ");
+      mPrintSettings->SetDocURL(NS_LITERAL_STRING(" "));
 
       nsresult rv = NS_ERROR_FAILURE;
       if (mIsDoingPrintPreview)
       {
         if (mStartupPPObs) {
           rv = mStartupPPObs->Observe(nullptr, nullptr, nullptr);
         }
       }