mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 11:35:51 -04:00
Replace old-style cast of null pointer with nullptr
This commit is contained in:
parent
83a093b8ec
commit
d42baff45d
@ -536,7 +536,7 @@ locale::operator=(const locale& other) _NOEXCEPT
|
|||||||
|
|
||||||
locale::locale(const char* name)
|
locale::locale(const char* name)
|
||||||
: __locale_(name ? new __imp(name)
|
: __locale_(name ? new __imp(name)
|
||||||
: (__throw_runtime_error("locale constructed with null"), (__imp*)0))
|
: (__throw_runtime_error("locale constructed with null"), nullptr))
|
||||||
{
|
{
|
||||||
__locale_->__add_shared();
|
__locale_->__add_shared();
|
||||||
}
|
}
|
||||||
@ -549,7 +549,7 @@ locale::locale(const string& name)
|
|||||||
|
|
||||||
locale::locale(const locale& other, const char* name, category c)
|
locale::locale(const locale& other, const char* name, category c)
|
||||||
: __locale_(name ? new __imp(*other.__locale_, name, c)
|
: __locale_(name ? new __imp(*other.__locale_, name, c)
|
||||||
: (__throw_runtime_error("locale constructed with null"), (__imp*)0))
|
: (__throw_runtime_error("locale constructed with null"), nullptr))
|
||||||
{
|
{
|
||||||
__locale_->__add_shared();
|
__locale_->__add_shared();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user