Remove ; from end of function definitions

This commit is contained in:
Lars Gullik Bjønnes 2013-05-12 13:00:02 +02:00
parent 1fded6e817
commit 704328d348
19 changed files with 21 additions and 21 deletions

View File

@ -26,7 +26,7 @@ public:
//@{
enum Result check(WordLangTuple const &);
void suggest(WordLangTuple const &, docstring_list &);
void stem(WordLangTuple const &, docstring_list &) {};
void stem(WordLangTuple const &, docstring_list &) {}
void insert(WordLangTuple const &);
void remove(WordLangTuple const &);
void accept(WordLangTuple const &);

View File

@ -27,7 +27,7 @@ public:
//@{
enum Result check(WordLangTuple const &);
void suggest(WordLangTuple const &, docstring_list &);
void stem(WordLangTuple const &, docstring_list &) {};
void stem(WordLangTuple const &, docstring_list &) {}
void insert(WordLangTuple const &);
void remove(WordLangTuple const &);
void accept(WordLangTuple const &);

View File

@ -33,7 +33,7 @@ public:
///@{
enum Result check(WordLangTuple const &);
void suggest(WordLangTuple const &, docstring_list &);
void stem(WordLangTuple const &, docstring_list &) {};
void stem(WordLangTuple const &, docstring_list &) {}
void insert(WordLangTuple const &);
void remove(WordLangTuple const &);
void accept(WordLangTuple const &);

View File

@ -41,7 +41,7 @@ public:
class ErrorList : private std::vector<ErrorItem>
{
public:
ErrorList() : std::vector<ErrorItem> () {};
ErrorList() : std::vector<ErrorItem> () {}
using std::vector<ErrorItem>::push_back;
using std::vector<ErrorItem>::end;

View File

@ -81,7 +81,7 @@ private:
/// LayoutFileList, which calls the private constructor.
friend class LayoutFileList;
/// can't create empty LayoutFile
LayoutFile() {};
LayoutFile() {}
};

View File

@ -61,7 +61,7 @@ public:
/// to be used, for example, in displaying information about a
/// highlighted item: should it be the highlighted available item
/// or the highlighted selected item that is displayed?
bool selectedFocused() const { return selectedHasFocus_; };
bool selectedFocused() const { return selectedHasFocus_; }
/// Returns the selected index. Note that this will depend upon
/// selectedFocused().
QModelIndex getSelectedIndex() const;

View File

@ -127,7 +127,7 @@ public:
* Intented purpose is to sanitize internal state with regard to current
* Buffer.
**/
virtual void initView() {};
virtual void initView() {}
/// \return true if this inset is labeled.
virtual bool isLabeled() const { return false; }

View File

@ -108,7 +108,7 @@ private:
///
struct Cache {
Cache() : recalculate(true) {};
Cache() : recalculate(true) {}
///
bool recalculate;
///

View File

@ -143,7 +143,7 @@ public:
///
static bool isCompatibleCommand(InsetCode code, std::string const & s);
///
ParamInfo const & info() const { return info_; };
ParamInfo const & info() const { return info_; }
///
docstring prepareCommand(OutputParams const & runparams,
docstring const & command, ParamInfo::ParamHandling handling) const;

View File

@ -171,7 +171,7 @@ public:
/// should we break lines after this inset?
bool isLineSeparator() const;
private:
Inset * clone() const { return new InsetIPAChar(*this); };
Inset * clone() const { return new InsetIPAChar(*this); }
/// And which kind is this?
Kind kind_;

View File

@ -31,7 +31,7 @@ public:
//@{
docstring screenLabel() const;
static ParamInfo const & findInfo(std::string const &);
static std::string defaultCommand() { return "rule"; };
static std::string defaultCommand() { return "rule"; }
static bool isCompatibleCommand(std::string const & s)
{ return s == "rule"; }
//@}

View File

@ -54,7 +54,7 @@ public:
///
static ParamInfo const & findInfo(std::string const &);
///
static std::string defaultCommand() { return "nomenclature"; };
static std::string defaultCommand() { return "nomenclature"; }
///
static bool isCompatibleCommand(std::string const & s)
{ return s == "nomenclature"; }
@ -108,7 +108,7 @@ public:
///
static ParamInfo const & findInfo(std::string const &);
///
static std::string defaultCommand() { return "printnomenclature"; };
static std::string defaultCommand() { return "printnomenclature"; }
///
static bool isCompatibleCommand(std::string const & s)
{ return s == "printnomenclature"; }

View File

@ -85,7 +85,7 @@ public:
/// should we break lines after this inset?
bool isLineSeparator() const;
private:
Inset * clone() const { return new InsetSpecialChar(*this); };
Inset * clone() const { return new InsetSpecialChar(*this); }
/// And which kind is this?
Kind kind_;

View File

@ -38,7 +38,7 @@ public:
/// draw inset and update (xo, yo)-cache
virtual void draw(PainterInfo & pi, int x, int y) const = 0;
///
Dimension const & dimension() const { return dim_; };
Dimension const & dimension() const { return dim_; }
/// render state, exact meaning of state is render-specific
void setRenderState(bool state) { state_ = state; }

View File

@ -61,9 +61,9 @@ public:
void htmlize(HtmlStream &) const;
/// returns nucleus
MathData const & nuc() const { return cell(0); };
MathData const & nuc() const { return cell(0); }
/// returns nucleus
MathData & nuc() { return cell(0); };
MathData & nuc() { return cell(0); }
/// bottom left index or single left cell
MathData const & bl() const { return cell(1); }
/// bottom left index or single left cell

View File

@ -157,7 +157,7 @@ public:
bool enabled() const { return enabled_; }
/// Returns second stream
std::ostream & secondStream() { return *second_stream_; };
std::ostream & secondStream() { return *second_stream_; }
/// Sets second stream
void setSecondStream(std::ostream * os)
{ second_enabled_ = (second_stream_ = os); }

View File

@ -51,7 +51,7 @@ struct ForeachContainerBase {};
template <typename T>
class ForeachContainer : public ForeachContainerBase {
public:
inline ForeachContainer(const T& t): c(t), brk(0), i(c.begin()), e(c.end()){};
inline ForeachContainer(const T& t): c(t), brk(0), i(c.begin()), e(c.end()){}
const T & c;
mutable int brk;
mutable typename T::const_iterator i, e;

View File

@ -128,7 +128,7 @@ int gettimeofday(struct timeval * tv, struct timezone * /*tz*/)
class PMProfStat {
public:
PMProfStat(char const * name)
: name_(name), sec_(0), usec_(0), count_(0) {};
: name_(name), sec_(0), usec_(0), count_(0) {}
~PMProfStat() {
if (count_>0) {

View File

@ -123,7 +123,7 @@ class iparserdocstream
public:
typedef idocstream::int_type int_type;
iparserdocstream(idocstream & is) : is_(is) {};
iparserdocstream(idocstream & is) : is_(is) {}
/// Like std::istream::operator bool()
operator bool() const { return s_.empty() ? is_ : true; }