From b29baef05f700a94a0dc315c1b891ed7f6ab6173 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 6 Jan 2016 19:35:56 +0300 Subject: Add noexcept into font. --- src/gui/fonts/font.cpp | 2 +- src/gui/fonts/font.h | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src/gui') diff --git a/src/gui/fonts/font.cpp b/src/gui/fonts/font.cpp index 6ff4c056f..b476de976 100644 --- a/src/gui/fonts/font.cpp +++ b/src/gui/fonts/font.cpp @@ -366,7 +366,7 @@ int Font::getStringIndexAt(const std::string& text, const int x) const return static_cast(sz); } -const TextChunkList *Font::getCache() const +const TextChunkList *Font::getCache() const noexcept { return mCache; } diff --git a/src/gui/fonts/font.h b/src/gui/fonts/font.h index 997f04246..de35570e2 100644 --- a/src/gui/fonts/font.h +++ b/src/gui/fonts/font.h @@ -101,7 +101,8 @@ class Font final int getHeight() const restrict2 A_WARN_UNUSED; - const TextChunkList *getCache() const restrict2 A_CONST A_WARN_UNUSED; + const TextChunkList *getCache() const restrict2 noexcept + A_CONST A_WARN_UNUSED; /** * @see Font::drawString @@ -119,10 +120,10 @@ class Font final void slowLogic(const int rnd) restrict2; - int getCreateCounter() const restrict2 A_WARN_UNUSED + int getCreateCounter() const restrict2 noexcept A_WARN_UNUSED { return mCreateCounter; } - int getDeleteCounter() const restrict2 A_WARN_UNUSED + int getDeleteCounter() const restrict2 noexcept A_WARN_UNUSED { return mDeleteCounter; } int getStringIndexAt(const std::string &restrict text, -- cgit v1.2.3-70-g09d2