Skip to content

Commit d4ff5d5

Browse files
committed
xrWeatherEditor: Remove boost::noncopyable dependency.
Can be done with C++11 without depending on boost.
1 parent 0a0c0c3 commit d4ff5d5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/editors/xrWeatherEditor/window_weather_editor.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,14 @@ using Microsoft::Win32::Registry;
2121
using Microsoft::Win32::RegistryKey;
2222
using Microsoft::Win32::RegistryValueKind;
2323

24-
struct engine_pauser_guard : private boost::noncopyable {
24+
struct engine_pauser_guard {
2525
engine& m_engine;
2626
bool m_weather_paused;
2727

28+
// Non-copyable
29+
engine_pauser_guard(const engine_pauser_guard&) = delete;
30+
engine_pauser_guard& operator=(const engine_pauser_guard&) = delete;
31+
2832
inline engine_pauser_guard (engine& engine, bool const& value) :
2933
m_engine (engine),
3034
m_weather_paused (engine.weather_paused())

0 commit comments

Comments
 (0)