From d1f8fc31ffb2897fa7fdd143ce91564fbcd91c6f Mon Sep 17 00:00:00 2001 From: silverqx Date: Sun, 4 Feb 2024 16:06:42 +0100 Subject: [PATCH] tom added const and noexcept --- include/orm/libraryinfo.hpp | 2 +- src/orm/libraryinfo.cpp | 2 +- tom/include/tom/commands/aboutcommand.hpp | 2 +- tom/src/tom/commands/aboutcommand.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/orm/libraryinfo.hpp b/include/orm/libraryinfo.hpp index 06e1cee47..25241d1b1 100644 --- a/include/orm/libraryinfo.hpp +++ b/include/orm/libraryinfo.hpp @@ -30,7 +30,7 @@ namespace Orm static const char *build() noexcept; /*! Return true if this build of TinyORM was built with debugging enabled, or false if it was built in release mode. */ - static bool isDebugBuild(); + static bool isDebugBuild() noexcept; /*! Return the version of the TinyORM library. */ static QVersionNumber version() noexcept Q_DECL_CONST_FUNCTION; diff --git a/src/orm/libraryinfo.cpp b/src/orm/libraryinfo.cpp index 1eb3f1f2a..0718b6bac 100644 --- a/src/orm/libraryinfo.cpp +++ b/src/orm/libraryinfo.cpp @@ -46,7 +46,7 @@ const char *LibraryInfo::build() noexcept return TINYORM_BUILD_STR; } -bool LibraryInfo::isDebugBuild() +bool LibraryInfo::isDebugBuild() noexcept { #ifdef TINYORM_NO_DEBUG return false; diff --git a/tom/include/tom/commands/aboutcommand.hpp b/tom/include/tom/commands/aboutcommand.hpp index 1ebc61d90..a2fbb73d3 100644 --- a/tom/include/tom/commands/aboutcommand.hpp +++ b/tom/include/tom/commands/aboutcommand.hpp @@ -46,7 +46,7 @@ namespace Commands /*! Display the application information. */ void display(const QVector §ions); /*! Display the application information as a detail view. */ - void displayDetail(const QVector §ions); + void displayDetail(const QVector §ions) const; /*! Display the application information as JSON. */ void displayJson(const QVector §ions); diff --git a/tom/src/tom/commands/aboutcommand.cpp b/tom/src/tom/commands/aboutcommand.cpp index b01b14880..b814fd6b9 100644 --- a/tom/src/tom/commands/aboutcommand.cpp +++ b/tom/src/tom/commands/aboutcommand.cpp @@ -71,7 +71,7 @@ void AboutCommand::display(const QVector §ions) displayDetail(sections); } -void AboutCommand::displayDetail(const QVector §ions) +void AboutCommand::displayDetail(const QVector §ions) const { auto firstSection = true;