From 468fc203ca9b6e7c94195e233f91bc1d7af6ebfd Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Sun, 10 Nov 2024 15:05:11 +0100 Subject: [PATCH] Use =0 for new functions, use default for destructor --- include/guisan/listmodel.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/guisan/listmodel.hpp b/include/guisan/listmodel.hpp index f3be319..5d0f5ef 100644 --- a/include/guisan/listmodel.hpp +++ b/include/guisan/listmodel.hpp @@ -76,7 +76,7 @@ namespace gcn /** * Destructor. */ - virtual ~ListModel() { } + virtual ~ListModel() = default; /** * Gets the number of elements in the list. @@ -92,6 +92,12 @@ namespace gcn * @return An element as a string at the a certain index. */ virtual std::string getElementAt(int i) = 0; + + // Add a new element + virtual void add(const std::string& str) = 0; + + // Clear all elements + virtual void clear_elements() = 0; }; }