gecko-dev/xpcom/string
Ray Kraesig e2ee2f11df Bug 1891541 - [2/2] enforce that MozPromise only accepts static strings r=xpcom-reviewers,media-playback-reviewers,padenot,emilio
All present uses of the call-site arguments to MozPromise's methods
supply static strings. However, this is nowhere enforced. Do so.

Additionally, since this is the third or fourth time the present author
alone has personally implemented such an enforcement mechanism, create a
helper class to simplify doing so.

No functional changes.

Differential Revision: https://phabricator.services.mozilla.com/D207462
2024-04-24 17:02:49 +00:00
..
crashtests
moz.build
nsASCIIMask.cpp
nsASCIIMask.h
nsAString.h
nsCharTraits.h
nsDependentString.h
nsDependentSubstring.h
nsLiteralString.h
nsPrintfCString.h
nsPromiseFlatString.h
nsReadableUtils.cpp
nsReadableUtils.h
nsString.h
nsStringBuffer.cpp
nsStringBuffer.h
nsStringFlags.h
nsStringFwd.h
nsStringIterator.h
nsStringStats.cpp
nsStringStats.h
nsTDependentString.cpp
nsTDependentString.h
nsTDependentSubstring.cpp
nsTDependentSubstring.h
nsTextFormatter.cpp
nsTextFormatter.h
nsTLiteralString.cpp
nsTLiteralString.h Bug 1891541 - [2/2] enforce that MozPromise only accepts static strings r=xpcom-reviewers,media-playback-reviewers,padenot,emilio 2024-04-24 17:02:49 +00:00
nsTPromiseFlatString.cpp
nsTPromiseFlatString.h
nsTString.cpp
nsTString.h
nsTStringComparator.cpp
nsTStringHasher.h
nsTStringRepr.cpp
nsTStringRepr.h
nsTSubstring.cpp
nsTSubstring.h
nsTSubstringTuple.cpp
nsTSubstringTuple.h
nsUTF8Utils.h
README.html
RustRegex.h
RustStringAPI.cpp

<html>
  <!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
  <body>
    <h1><span class="LXRSHORTDESC">managing sequences of characters</span></h1>
    <p>
      <span class="LXRLONGDESC"></span>
    </p>
  </body>
</html>