Bug 1353593 - Part 1: Allow implicit conversion of non-const char16ptr_t to wchar*. r=froydnj

This commit is contained in:
Eric Rahm 2017-06-09 17:00:23 -07:00
parent e1cf6f5041
commit 3e4e94550e

View File

@ -56,6 +56,12 @@ public:
{
return reinterpret_cast<const wchar_t*>(mPtr);
}
operator wchar_t*()
{
return const_cast<wchar_t*>(reinterpret_cast<const wchar_t*>(mPtr));
}
operator const void*() const
{
return mPtr;