Commit ee06dfb0 authored by Dominik Charousset's avatar Dominik Charousset

Coding style nitpick

parent 11fe6b24
...@@ -45,7 +45,7 @@ public: ...@@ -45,7 +45,7 @@ public:
void dispose() override { void dispose() override {
if (state_) { if (state_) {
decltype(state_) state; decltype(state_) state;
std::swap(state_, state); state.swap(state_);
state->dispose(); state->dispose();
} }
} }
......
...@@ -165,7 +165,7 @@ public: ...@@ -165,7 +165,7 @@ public:
void dispose() override { void dispose() override {
if (state_) { if (state_) {
decltype(state_) state; decltype(state_) state;
std::swap(state_, state); state.swap(state_);
state->dispose(); state->dispose();
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment