summaryrefslogtreecommitdiff
path: root/src/gui/fonts/font.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-06 19:35:56 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-06 19:35:56 +0300
commitb29baef05f700a94a0dc315c1b891ed7f6ab6173 (patch)
tree076b2d520f0e38b4ddb5d531b3b619ec504bb52d /src/gui/fonts/font.h
parentc72c7978c95f32ea13895064a4aa75d62d177ba6 (diff)
downloadmv-b29baef05f700a94a0dc315c1b891ed7f6ab6173.tar.gz
mv-b29baef05f700a94a0dc315c1b891ed7f6ab6173.tar.bz2
mv-b29baef05f700a94a0dc315c1b891ed7f6ab6173.tar.xz
mv-b29baef05f700a94a0dc315c1b891ed7f6ab6173.zip
Add noexcept into font.
Diffstat (limited to 'src/gui/fonts/font.h')
-rw-r--r--src/gui/fonts/font.h7
1 files changed, 4 insertions, 3 deletions
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,