From 41759e1e892f37c0a51b8ee8cf9422a42230f0c9 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 1 Feb 2018 22:25:50 +0100 Subject: svtools: SvParser::NextToken() can be pure-virtual Change-Id: I9e8c87beb86ee073d6b5ee95c3f80e6dc55a99e9 Reviewed-on: https://gerrit.libreoffice.org/49117 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- include/svtools/svparser.hxx | 2 +- svtools/source/svrtf/svparser.cxx | 7 ------- 2 files changed, 1 insertion(+), 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::TokenStackType* SvParser::GetStackPtr( short nCnt ) return pTokenStack + nAktPos; } -// is called for each token which is recognised by CallParser -template -void SvParser::NextToken( T ) -{ -} - - // to read asynchronous from SvStream template -- cgit