chore: use member initializer (#3704)

Co-authored-by: Aaron Gokaslan <skylion.aaron@gmail.com>
This commit is contained in:
Ralf W. Grosse-Kunstleve 2022-02-08 19:08:31 -08:00 committed by GitHub
parent ddbc74c674
commit b4f5350d0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -62,10 +62,7 @@ private:
public: public:
/// A new patient frame is created when a function is entered /// A new patient frame is created when a function is entered
loader_life_support() { loader_life_support() : parent{get_stack_top()} { set_stack_top(this); }
parent = get_stack_top();
set_stack_top(this);
}
/// ... and destroyed after it returns /// ... and destroyed after it returns
~loader_life_support() { ~loader_life_support() {