Improve CHECK.
This commit is contained in:
parent
60907279fd
commit
5e70be9d36
@ -363,7 +363,7 @@ class Status {
|
||||
}
|
||||
|
||||
Status clone_static() const TD_WARN_UNUSED_RESULT {
|
||||
CHECK(is_ok() || get_info().static_flag);
|
||||
CHECK(ptr_ != nullptr && get_info().static_flag);
|
||||
Status result;
|
||||
result.ptr_ = std::unique_ptr<char[], Deleter>(ptr_.get());
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user