Skip to content

Commit 05e3bb0

Browse files
committed
Improve member order of BoostVM
* The environment is the "main context" of the VM. * Also follows better the constructor arguments order.
1 parent d4d2b2a commit 05e3bb0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

vm/boostenv/main/boostvm-decl.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ public:
134134
}
135135

136136
public:
137-
const VM vm;
138137
BoostEnvironment& env;
138+
const VM vm;
139139
const VMIdentifier identifier;
140140

141141
// Random number and UUID generation

vm/boostenv/main/boostvm.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ BoostVM::BoostVM(BoostEnvironment& environment,
3939
VMIdentifier identifier,
4040
VirtualMachineOptions options,
4141
std::unique_ptr<std::string>&& app, bool isURL) :
42-
VirtualMachine(environment, options), vm(this),
43-
env(environment), identifier(identifier),
42+
VirtualMachine(environment, options), env(environment),
43+
vm(this), identifier(identifier),
4444
uuidGenerator(random_generator),
4545
portClosed(false),
4646
_asyncIONodeCount(0),

0 commit comments

Comments
 (0)