Skip to content

Commit

Permalink
Partially revert ca51442
Browse files Browse the repository at this point in the history
Taking an argument, especially by reference, does not require a full type.
Including unit.hpp in make.hpp utterly defeats the point of make.hpp's existence.
  • Loading branch information
AI0867 committed Nov 19, 2017
1 parent ca51442 commit 3d3b1bc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/units/make.cpp
Expand Up @@ -13,6 +13,7 @@
*/

#include "units/make.hpp"
#include "units/unit.hpp"

unit_ptr make_unit_ptr(const config& cfg, bool use_traits, const vconfig* vcfg){
return { new unit(cfg, use_traits, vcfg) };
Expand Down
1 change: 0 additions & 1 deletion src/units/make.hpp
Expand Up @@ -14,7 +14,6 @@

#include "units/race.hpp"
#include "units/ptr.hpp"
#include "units/unit.hpp"

class config;
class unit_type;
Expand Down

0 comments on commit 3d3b1bc

Please sign in to comment.