Skip to content

Commit dcda6a1

Browse files
committed
SchemaValidatorBase: Use the override keyword.
Though this is strange on pure virtual methods. These only seem to be repeated here so they can have more specific documentation than in the base class.
1 parent 9d16fdc commit dcda6a1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libxml++/validators/schemavalidatorbase.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ class SchemaValidatorBase : public Validator
4646
* @param filename The URL of the schema.
4747
* @throws xmlpp::parse_error
4848
*/
49-
virtual void parse_file(const std::string& filename) = 0;
49+
void parse_file(const std::string& filename) override = 0;
5050

5151
/** Parse a schema definition from a string.
5252
* If the validator already contains a schema, that schema is released
5353
* (deleted if the validator owns the schema).
5454
* @param contents The schema definition as a string.
5555
* @throws xmlpp::parse_error
5656
*/
57-
virtual void parse_memory(const Glib::ustring& contents) = 0;
57+
void parse_memory(const Glib::ustring& contents) override = 0;
5858

5959
/** Parse a schema definition from a document.
6060
* If the validator already contains a schema, that schema is released
@@ -71,14 +71,14 @@ class SchemaValidatorBase : public Validator
7171
* do_something();
7272
* @endcode
7373
*/
74-
explicit virtual operator bool() const noexcept = 0;
74+
explicit virtual operator bool() const noexcept override = 0;
7575

7676
/** Validate a document, using a previously parsed schema.
7777
* @param document Pointer to the document.
7878
* @throws xmlpp::internal_error
7979
* @throws xmlpp::validity_error
8080
*/
81-
virtual void validate(const Document* document) = 0;
81+
void validate(const Document* document) override = 0;
8282

8383
/** Validate an XML file, using a previously parsed schema.
8484
* @param filename The URL of the XML file.

0 commit comments

Comments
 (0)