Bug 1134920 drive-by comment fix. DONTBUILD
authorDavid Major <dmajor@mozilla.com>
Sat, 02 May 2015 03:01:06 +1200
changeset 241990 c0b2da7ea0f9b4bf844b8183dfc645b58ea91786
parent 241989 e70555ac58d8a6b15efe667bb419726849b1cfc3
child 241991 665696faba4629a2fe1c020323e4321d7ab4d912
push id59277
push userdmajor@mozilla.com
push dateFri, 01 May 2015 15:01:41 +0000
treeherdermozilla-inbound@c0b2da7ea0f9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1134920
milestone40.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
Bug 1134920 drive-by comment fix. DONTBUILD
widget/nsPrimitiveHelpers.cpp
widget/nsPrimitiveHelpers.h
--- a/widget/nsPrimitiveHelpers.cpp
+++ b/widget/nsPrimitiveHelpers.cpp
@@ -226,17 +226,17 @@ nsPrimitiveHelpers :: ConvertPlatformPla
 //
 // ConvertPlatformToDOMLinebreaks
 //
 // Given some data, convert from the platform linebreaks into the LF expected by the
 // DOM. This will attempt to convert the data in place, but the buffer may still need to
 // be reallocated regardless (disposing the old buffer is taken care of internally, see
 // the note below).
 //
-// NOTE: this assumes that it can use nsMemory to dispose of the old buffer.
+// NOTE: this assumes that it can use 'free' to dispose of the old buffer.
 //
 nsresult
 nsLinebreakHelpers :: ConvertPlatformToDOMLinebreaks ( const char* inFlavor, void** ioData, 
                                                           int32_t* ioLengthInBytes )
 {
   NS_ASSERTION ( ioData && *ioData && ioLengthInBytes, "Bad Params");
   if ( !(ioData && *ioData && ioLengthInBytes) )
     return NS_ERROR_INVALID_ARG;
--- a/widget/nsPrimitiveHelpers.h
+++ b/widget/nsPrimitiveHelpers.h
@@ -51,15 +51,15 @@ class nsLinebreakHelpers
 {
 public:
 
     // Given some data, convert from the platform linebreaks into the LF expected by the
     // DOM. This will attempt to convert the data in place, but the buffer may still need to
     // be reallocated regardless (disposing the old buffer is taken care of internally, see
     // the note below).
     //
-    // NOTE: this assumes that it can use nsMemory to dispose of the old buffer.
+    // NOTE: this assumes that it can use 'free' to dispose of the old buffer.
   static nsresult ConvertPlatformToDOMLinebreaks ( const char* inFlavor, void** ioData, int32_t* ioLengthInBytes ) ;
 
 }; // class nsLinebreakHelpers
 
 
 #endif // nsPrimitiveHelpers_h___