Fix Mac bustage for bug 889219 on a CLOSED TREE
authorRobert O'Callahan <robert@ocallahan.org>
Thu, 25 Jul 2013 00:40:45 +1200
changeset 152111 3467ec69e0ddaf205d19f6c3838c7013ea45b7e6
parent 152110 e36551e9cd271c1f81c4314c26d043d8037f790c
child 152112 b4402b6dba21bd5e1e0d7a684e97223a56576d18
push id2859
push userakeybl@mozilla.com
push dateMon, 16 Sep 2013 19:14:59 +0000
treeherdermozilla-beta@87d3c51cd2bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs889219
milestone25.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Fix Mac bustage for bug 889219 on a CLOSED TREE
widget/cocoa/nsDeviceContextSpecX.mm
--- a/widget/cocoa/nsDeviceContextSpecX.mm
+++ b/widget/cocoa/nsDeviceContextSpecX.mm
@@ -60,17 +60,17 @@ NS_IMETHODIMP nsDeviceContextSpecX::Init
 NS_IMETHODIMP nsDeviceContextSpecX::BeginDocument(const nsAString& aTitle, 
                                                   PRUnichar*       aPrintToFileName,
                                                   int32_t          aStartPage, 
                                                   int32_t          aEndPage)
 {
     NS_OBJC_BEGIN_TRY_ABORT_BLOCK_NSRESULT;
 
     if (!aTitle.IsEmpty()) {
-      CFStringRef cfString = ::CFStringCreateWithCharacters(NULL, aTitle, aTitle.Length());
+      CFStringRef cfString = ::CFStringCreateWithCharacters(NULL, aTitle.BeginReading(), aTitle.Length());
       if (cfString) {
         ::PMPrintSettingsSetJobName(mPrintSettings, cfString);
         ::CFRelease(cfString);
       }
     }
 
     OSStatus status;
     status = ::PMSetFirstPage(mPrintSettings, aStartPage, false);