From 56ddbe04dc445c012c568083202ce433c1da7026 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 20 Jan 2024 21:28:31 +0900 Subject: Replace auto_ptr Signed-off-by: Michele Calgaro --- lib/kformula/kformulacommand.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/kformula/kformulacommand.h') diff --git a/lib/kformula/kformulacommand.h b/lib/kformula/kformulacommand.h index bc1703be..75a47da3 100644 --- a/lib/kformula/kformulacommand.h +++ b/lib/kformula/kformulacommand.h @@ -435,7 +435,9 @@ class KFCAddGenericIndex : public KFCAdd { public: - KFCAddGenericIndex(Container* document, ElementIndexPtr index); + KFCAddGenericIndex(Container* document, ElementIndexPtr &index); + KFCAddGenericIndex(KFCAddGenericIndex const &) = delete; + KFCAddGenericIndex& operator=(KFCAddGenericIndex const &) = delete; virtual void execute(); -- cgit v1.2.1