Bug 1135081 - Fix typo in nsTString::AssertValidDepedentString. r=froydnj
authorTom Tromey <tromey@mozilla.com>
Fri, 20 Feb 2015 08:02:00 -0500
changeset 230031 22e2163cb8ec2728bc9d343969d8cad3599f5f4e
parent 230030 333249f6088d026149d22bfc7334c73e8382eb55
child 230032 56e00c7bfa7e95e0912b32f538e449b3f4f7057c
push id28305
push userkwierso@gmail.com
push dateSat, 21 Feb 2015 01:57:46 +0000
treeherdermozilla-central@56efbd155062 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1135081
milestone38.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 1135081 - Fix typo in nsTString::AssertValidDepedentString. r=froydnj
xpcom/string/nsTDependentString.h
xpcom/string/nsTString.cpp
xpcom/string/nsTString.h
--- a/xpcom/string/nsTDependentString.h
+++ b/xpcom/string/nsTDependentString.h
@@ -27,38 +27,38 @@ public:
   /**
    * constructors
    */
 
   nsTDependentString_CharT(const char_type* aStart, const char_type* aEnd)
     : string_type(const_cast<char_type*>(aStart),
                   uint32_t(aEnd - aStart), F_TERMINATED)
   {
-    AssertValidDepedentString();
+    AssertValidDependentString();
   }
 
   nsTDependentString_CharT(const char_type* aData, uint32_t aLength)
     : string_type(const_cast<char_type*>(aData), aLength, F_TERMINATED)
   {
-    AssertValidDepedentString();
+    AssertValidDependentString();
   }
 
 #if defined(CharT_is_PRUnichar) && defined(MOZ_USE_CHAR16_WRAPPER)
   nsTDependentString_CharT(char16ptr_t aData, uint32_t aLength)
     : nsTDependentString_CharT(static_cast<const char16_t*>(aData), aLength)
   {
   }
 #endif
 
   explicit
   nsTDependentString_CharT(const char_type* aData)
     : string_type(const_cast<char_type*>(aData),
                   uint32_t(char_traits::length(aData)), F_TERMINATED)
   {
-    AssertValidDepedentString();
+    AssertValidDependentString();
   }
 
 #if defined(CharT_is_PRUnichar) && defined(MOZ_USE_CHAR16_WRAPPER)
   explicit
   nsTDependentString_CharT(char16ptr_t aData)
     : nsTDependentString_CharT(static_cast<const char16_t*>(aData))
   {
   }
--- a/xpcom/string/nsTString.cpp
+++ b/xpcom/string/nsTString.cpp
@@ -37,11 +37,11 @@ void
 nsTString_CharT::Rebind(const char_type* data, size_type length)
 {
   // If we currently own a buffer, release it.
   Finalize();
 
   mData = const_cast<char_type*>(data);
   mLength = length;
   SetDataFlags(F_TERMINATED);
-  AssertValidDepedentString();
+  AssertValidDependentString();
 }
 
--- a/xpcom/string/nsTString.h
+++ b/xpcom/string/nsTString.h
@@ -441,17 +441,17 @@ public:
    * until the string is rebound or mutated; the caller
    * must ensure that the buffer outlives the string.
    */
   void Rebind(const char_type* aData, size_type aLength);
 
   /**
    * verify restrictions for dependent strings
    */
-  void AssertValidDepedentString()
+  void AssertValidDependentString()
   {
     NS_ASSERTION(mData, "nsTDependentString must wrap a non-NULL buffer");
     NS_ASSERTION(mLength != size_type(-1), "nsTDependentString has bogus length");
     NS_ASSERTION(mData[mLength] == 0,
                  "nsTDependentString must wrap only null-terminated strings. "
                  "You are probably looking for nsTDependentSubstring.");
   }