mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 13:07:16 +00:00
Remove extra semis in struct defs
This commit is contained in:
parent
548b5b7772
commit
59b7e7bbdf
2
cell.cpp
2
cell.cpp
@ -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() { }
|
||||||
|
@ -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;
|
||||||
};
|
};
|
||||||
|
@ -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); }
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
4
hyper.h
4
hyper.h
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user