MCPcopy Create free account
hub / github.com/apache/arrow / CopyFrom

Method CopyFrom

cpp/src/arrow/status.cc:35–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35void Status::CopyFrom(const Status& s) {
36 if (ARROW_PREDICT_FALSE(state_ != NULL)) {
37 if (!state_->is_constant) {
38 DeleteState();
39 }
40 }
41 if (s.state_ == nullptr) {
42 state_ = nullptr;
43 } else if (s.state_->is_constant) {
44 state_ = s.state_;
45 } else {
46 state_ = new State(*s.state_);
47 }
48}
49
50std::string Status::CodeAsString() const {
51 if (state_ == nullptr) {

Callers 1

VisitMethod · 0.45

Calls 1

DeleteStateFunction · 0.85

Tested by

no test coverage detected