Bug 1648010 - Remove NS_LITERAL_STRING and NS_LITERAL_CSTRING macros. r=froydnj

Differential Revision: https://phabricator.services.mozilla.com/D80862
This commit is contained in:
Simon Giesecke 2020-07-01 22:48:43 +00:00
Родитель 7877b9650e
Коммит 70b5ff0968
1 изменённых файлов: 0 добавлений и 6 удалений

Просмотреть файл

@ -20,12 +20,6 @@
static_cast<const nsLiteralString&>( \
nsLiteralString(NS_CSTRING_LITERAL_AS_STRING_LITERAL(s)))
#define NS_LITERAL_STRING(s) \
static_cast<const nsLiteralString&>(nsLiteralString(u"" s))
#define NS_LITERAL_CSTRING(s) \
static_cast<const nsLiteralCString&>(nsLiteralCString("" s))
constexpr auto operator""_ns(const char* aStr, std::size_t aLen) {
return nsLiteralCString{aStr, aLen};
}