Skip to content

Commit 6f7271a

Browse files
committed
remove virtual destructor from api::pmanager
1 parent c5a282d commit 6f7271a

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

src/api/api_polynomial.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,6 @@ Module Name:
2626
#include "util/scoped_timer.h"
2727
#include "ast/expr2var.h"
2828

29-
namespace api {
30-
31-
pmanager::pmanager(reslimit& lim):
32-
m_pm(lim, m_nm) {
33-
}
34-
35-
pmanager::~pmanager() {
36-
}
37-
38-
};
39-
4029
extern "C" {
4130

4231
Z3_ast_vector Z3_API Z3_polynomial_subresultants(Z3_context c, Z3_ast p, Z3_ast q, Z3_ast x) {

src/api/api_polynomial.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ Module Name:
2323

2424
namespace api {
2525

26-
class pmanager {
26+
class pmanager final {
2727
unsynch_mpz_manager m_nm;
2828
polynomial::manager m_pm;
2929
// TODO: add support for caching expressions -> polynomial and back
3030
public:
31-
pmanager(reslimit& limx);
32-
virtual ~pmanager();
31+
pmanager(reslimit& lim) : m_pm(lim, m_nm) {}
32+
~pmanager() {}
3333
polynomial::manager & pm() { return m_pm; }
3434
};
3535

0 commit comments

Comments
 (0)