Skip to content

Commit

Permalink
Use =0 for new functions, use default for destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Nov 10, 2024
1 parent 58347a5 commit 468fc20
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion include/guisan/listmodel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ namespace gcn
/**
* Destructor.
*/
virtual ~ListModel() { }
virtual ~ListModel() = default;

/**
* Gets the number of elements in the list.
Expand All @@ -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;
};
}

Expand Down

0 comments on commit 468fc20

Please sign in to comment.