[glom] C++11: More use of override keyword.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] C++11: More use of override keyword.
- Date: Wed, 28 Oct 2015 10:10:45 +0000 (UTC)
commit fbb0959c9dc5c745799e9fa6c80e371ef434e58b
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Oct 26 22:51:15 2015 +0100
C++11: More use of override keyword.
glom/libglom/connectionpool_backends/backend.h | 4 ++--
glom/libglom/data_structure/glomconversions.cc | 3 +--
2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/glom/libglom/connectionpool_backends/backend.h b/glom/libglom/connectionpool_backends/backend.h
index 356e9a6..7acaaf4 100644
--- a/glom/libglom/connectionpool_backends/backend.h
+++ b/glom/libglom/connectionpool_backends/backend.h
@@ -47,9 +47,9 @@ public:
ExceptionConnection(failure_type failure);
virtual ~ExceptionConnection() noexcept;
- virtual const char* what() const noexcept;
+ virtual const char* what() const noexcept override;
- virtual failure_type get_failure_type() const;
+ failure_type get_failure_type() const;
private:
failure_type m_failure_type;
diff --git a/glom/libglom/data_structure/glomconversions.cc b/glom/libglom/data_structure/glomconversions.cc
index 62455f2..e8835ae 100644
--- a/glom/libglom/data_structure/glomconversions.cc
+++ b/glom/libglom/data_structure/glomconversions.cc
@@ -343,8 +343,7 @@ class numpunct_thousands_separator: public std::numpunct<char>
class numpunct_no_thousands_separator: public std::numpunct<char>
{
- //Override
- std::string do_grouping() const
+ std::string do_grouping() const override
{
return "";
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]