зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
7877b9650e
Коммит
70b5ff0968
|
@ -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};
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче