mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
Bug 1353593 - Part 1: Allow implicit conversion of non-const char16ptr_t to wchar*. r=froydnj
This commit is contained in:
parent
e1cf6f5041
commit
3e4e94550e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user