Skip to content

Commit

Permalink
Fixed some stuff causing compiler errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Mar 26, 2018
1 parent 28c35e7 commit 8fc49bd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
9 changes: 5 additions & 4 deletions src/editor/palette/empty_palette.hpp
Expand Up @@ -27,9 +27,10 @@ class empty_palette : public common_palette {

public:

empty_palette(display& gui) :
common_palette(gui.video()),
gui_(gui) {}
empty_palette(display& gui)
: common_palette(gui.video())
//, gui_(gui)
{}

//event handling
virtual bool mouse_click() { return false;}
Expand Down Expand Up @@ -78,7 +79,7 @@ class empty_palette : public common_palette {
virtual void swap() override {}

private:
display& gui_;
//display& gui_;
};

}
3 changes: 3 additions & 0 deletions src/font/marked-up_text.cpp
Expand Up @@ -77,6 +77,8 @@ bool is_cjk_char(const ucs4::char_t ch)
(ch >= 0xff00 && ch < 0xffef);
}

// Re-enable if we find use for these
#if 0
namespace {

/*
Expand Down Expand Up @@ -169,5 +171,6 @@ inline bool break_after(const ucs4::char_t ch)
}

} // end of anon namespace
#endif

} // end namespace font
4 changes: 2 additions & 2 deletions src/help/help_topic_generators.hpp
Expand Up @@ -39,12 +39,12 @@ class terrain_topic_generator: public topic_generator

class unit_topic_generator: public topic_generator
{
const unit_type& type_;
//const unit_type& type_;
const std::string variation_;
typedef std::pair< std::string, unsigned > item;
void push_header(std::vector< item > &row, const std::string& name) const;
public:
unit_topic_generator(const unit_type &t, std::string variation="") : type_(t), variation_(variation) {}
unit_topic_generator(const unit_type &/*t*/, std::string variation="") : /*type_(t),*/ variation_(variation) {}
virtual std::string operator()() const;
};

Expand Down

0 comments on commit 8fc49bd

Please sign in to comment.