mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 17:15:39 +08:00
don't make_shared inline
This commit is contained in:
1 parent
484b3a2324
commit
9f5916070f
1 file changed
+4
-4
@@ -81,8 +81,8 @@ Status PyBuffer::Init(PyObject* obj) {
|
||||
}
|
||||
return Status::OK();
|
||||
} else {
|
||||
return Status(StatusCode::Invalid, "Couldn't convert to buffer.",
|
||||
std::make_shared<PythonErrorDetail>());
|
||||
auto detail = std::make_shared<PythonErrorDetail>();
|
||||
return Status(StatusCode::Invalid, "Couldn't convert to buffer.", detail);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -149,8 +149,8 @@ Status PassPyError() {
|
||||
if (PyErr_Occurred()) {
|
||||
// Do not call PyErr_Clear, the assumption is that someone further
|
||||
// up the call stack will want to deal with the Python error.
|
||||
return Status(StatusCode::UnknownError, "Python Error",
|
||||
std::make_shared<PythonErrorDetail>());
|
||||
auto detail = std::make_shared<PythonErrorDetail>();
|
||||
return Status(StatusCode::UnknownError, "Python Error", detail);
|
||||
}
|
||||
return Status::OK();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user