Bug 1134920 drive-by comment fix. DONTBUILD
authorDavid Major <dmajor@mozilla.com>
Sat, 02 May 2015 03:01:06 +1200
changeset 242023 c0b2da7ea0f9b4bf844b8183dfc645b58ea91786
parent 242005 e70555ac58d8a6b15efe667bb419726849b1cfc3
child 242024 665696faba4629a2fe1c020323e4321d7ab4d912
push id12702
push userkwierso@gmail.com
push dateSat, 02 May 2015 00:24:57 +0000
treeherderfx-team@a2bcc5840bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1134920
milestone40.0a1
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___