Bug 1773604 - Move definition of kNotFound to nsStringFwd.h, r=xpcom-reviewers,barret

This also changes the definition to be a static rather than a #define, in order
to reduce the potential impact.

Differential Revision: https://phabricator.services.mozilla.com/D148295
This commit is contained in:
Nika Layzell 2022-06-28 01:35:11 +00:00
parent a867c38ed4
commit 8dbbe37202
2 changed files with 2 additions and 2 deletions

View File

@ -15,8 +15,6 @@
#include <string.h>
#include <stdarg.h>
#define kNotFound -1
#include "nsStringFlags.h"
#include "nsTStringRepr.h"
#include "nsTSubstring.h"

View File

@ -11,6 +11,8 @@
#include "nscore.h"
static constexpr int32_t kNotFound = -1;
namespace mozilla {
namespace detail {