just for silencing some compilers. in our usage this doesn't matter
in practice. committing at my discretion.
class CRLF : public State {
public:
CRLF() {}
+ virtual ~CRLF() {} // see the base class for the destructor
virtual const State* handle(MasterLexer& lexer) const {
// We've just seen '\r'. If this is part of a sequence of '\r\n',
// we combine them as a single END-OF-LINE. Otherwise we treat the
class String : public State {
public:
String() {}
+ virtual ~String() {} // see the base class for the destructor
virtual const State* handle(MasterLexer& /*lexer*/) const {
return (NULL);
}
/// this library are expected to use this class.
class State {
public:
+ /// \brief Virtual destructor.
+ ///
+ /// In our usage this actually doesn't matter, but some compilers complain
+ /// about it and we need to silence them.
+ virtual ~State() {}
+
/// \brief Begin state transitions to get the next token.
///
/// This is the first method that \c MasterLexer needs to call for a