mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-21 20:55:11 +00:00
chore: use member initializer (#3704)
Co-authored-by: Aaron Gokaslan <skylion.aaron@gmail.com>
This commit is contained in:
parent
ddbc74c674
commit
b4f5350d0d
@ -62,10 +62,7 @@ private:
|
||||
|
||||
public:
|
||||
/// A new patient frame is created when a function is entered
|
||||
loader_life_support() {
|
||||
parent = get_stack_top();
|
||||
set_stack_top(this);
|
||||
}
|
||||
loader_life_support() : parent{get_stack_top()} { set_stack_top(this); }
|
||||
|
||||
/// ... and destroyed after it returns
|
||||
~loader_life_support() {
|
||||
|
Loading…
Reference in New Issue
Block a user