diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-02-01 22:25:50 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-02-02 09:04:24 +0100 |
commit | 41759e1e892f37c0a51b8ee8cf9422a42230f0c9 (patch) | |
tree | f04a21dfadf0b95e7bcb8c189ba243a677542bee | |
parent | a6f2199e9888cb75960f1d35034bd44fb45e5565 (diff) |
svtools: SvParser<T>::NextToken() can be pure-virtual
Change-Id: I9e8c87beb86ee073d6b5ee95c3f80e6dc55a99e9
Reviewed-on: https://gerrit.libreoffice.org/49117
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
-rw-r--r-- | include/svtools/svparser.hxx | 2 | ||||
-rw-r--r-- | svtools/source/svrtf/svparser.cxx | 7 |
2 files changed, 1 insertions, 8 deletions
diff --git a/include/svtools/svparser.hxx b/include/svtools/svparser.hxx index 2d3eaeeaf254..bb046d8083f4 100644 --- a/include/svtools/svparser.hxx +++ b/include/svtools/svparser.hxx @@ -89,7 +89,7 @@ protected: virtual T GetNextToken_() = 0; // is called for each Token that is recognized in CallParser - virtual void NextToken( T nToken ); + virtual void NextToken( T nToken ) = 0; // at times of SvRefBase derivation, not everybody may delete virtual ~SvParser() override; diff --git a/svtools/source/svrtf/svparser.cxx b/svtools/source/svrtf/svparser.cxx index 11ebe9805027..c6d59c08eb04 100644 --- a/svtools/source/svrtf/svparser.cxx +++ b/svtools/source/svrtf/svparser.cxx @@ -541,13 +541,6 @@ typename SvParser<T>::TokenStackType* SvParser<T>::GetStackPtr( short nCnt ) return pTokenStack + nAktPos; } -// is called for each token which is recognised by CallParser -template<typename T> -void SvParser<T>::NextToken( T ) -{ -} - - // to read asynchronous from SvStream template<typename T> |