1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 06:27:17 +00:00

Remove extra semis in struct defs

This commit is contained in:
Jesse Ruderman 2021-06-28 22:33:08 -07:00
parent 548b5b7772
commit 59b7e7bbdf
4 changed files with 5 additions and 5 deletions

View File

@ -16,7 +16,7 @@ extern int default_levs();
struct hrmap { struct hrmap {
virtual heptagon *getOrigin() { return NULL; } virtual heptagon *getOrigin() { return NULL; }
virtual cell *gamestart() { return getOrigin()->c7; } virtual cell *gamestart() { return getOrigin()->c7; }
virtual ~hrmap() { }; virtual ~hrmap() { }
virtual vector<cell*>& allcells(); virtual vector<cell*>& allcells();
virtual void verify() { } virtual void verify() { }
virtual void on_dim_change() { } virtual void on_dim_change() { }

View File

@ -27,7 +27,7 @@ struct supersaver {
virtual void load(const string& s) = 0; virtual void load(const string& s) = 0;
virtual bool dosave() = 0; virtual bool dosave() = 0;
virtual void reset() = 0; virtual void reset() = 0;
virtual ~supersaver() {}; virtual ~supersaver() {}
virtual bool affects(void* v) { return false; } virtual bool affects(void* v) { return false; }
virtual void set_default() = 0; virtual void set_default() = 0;
}; };

View File

@ -30,7 +30,7 @@ namespace util {
template <std::size_t I, typename T> struct nth { template <std::size_t I, typename T> struct nth {
inline static typename std::tuple_element<I, T>::type inline static typename std::tuple_element<I, T>::type
get(const T& t) { return std::get<I>(t); }; get(const T& t) { return std::get<I>(t); }
}; };
} }

View File

@ -26,8 +26,8 @@ namespace hr {
/** \brief A helper structure that acts as a boolean which is always false. Helpful when disabling stuff with compiler flags. */ /** \brief A helper structure that acts as a boolean which is always false. Helpful when disabling stuff with compiler flags. */
struct always_false { struct always_false {
operator bool() const { return false; }; operator bool() const { return false; }
bool operator = (bool b) const { return b; }; bool operator = (bool b) const { return b; }
}; };
/** \brief placate GCC's overzealous -Wunused-result */ /** \brief placate GCC's overzealous -Wunused-result */