From ba0b505cc19d961b174f372f2484900bce8c1a25 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 9 Oct 2021 09:39:47 +1100 Subject: Remove call of virtual function during destruction as default destruction does everything needed. Fixes warning from Cppcheck 2.6. --- src/ContractionState.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/ContractionState.cxx b/src/ContractionState.cxx index 68724ebab..8b4babb2e 100644 --- a/src/ContractionState.cxx +++ b/src/ContractionState.cxx @@ -95,9 +95,7 @@ ContractionState::ContractionState() noexcept : linesInDocument(1) { } template -ContractionState::~ContractionState() { - Clear(); -} +ContractionState::~ContractionState() = default; template void ContractionState::EnsureData() { -- cgit v1.2.3