Skip to content

Commit

Permalink
Map/Label: use default move ctor on compilers other than MSVC 2013
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Aug 28, 2017
1 parent 45c8c25 commit 8c8f109
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/map/label.cpp
Expand Up @@ -351,6 +351,7 @@ terrain_label::terrain_label(const map_labels& parent, const config& cfg)
read(cfg);
}

#if defined(_MSC_VER) && _MSC_VER < 1900
terrain_label::terrain_label(terrain_label&& l)
: handle_(l.handle_)
, tooltip_handle_(l.tooltip_handle_)
Expand All @@ -369,6 +370,7 @@ terrain_label::terrain_label(terrain_label&& l)
l.handle_ = 0;
l.tooltip_handle_ = 0;
}
#endif

terrain_label::~terrain_label()
{
Expand Down
4 changes: 4 additions & 0 deletions src/map/label.hpp
Expand Up @@ -126,7 +126,11 @@ class terrain_label
terrain_label(const map_labels&, const config&);

/** Move ctor. */
#if defined(_MSC_VER) && _MSC_VER < 1900
terrain_label(terrain_label&&);
#else
terrain_label(terrain_label&&) = default;
#endif

~terrain_label();

Expand Down

0 comments on commit 8c8f109

Please sign in to comment.