summaryrefslogtreecommitdiff
path: root/src/gui/fonts/font.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-24 18:26:52 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-24 18:26:52 +0300
commit67ee3168a45ea09a863de5be2e0a94cf1afbe6dc (patch)
treeaa33639f3e70f81444b893bbbb99ab78f6beb2d6 /src/gui/fonts/font.h
parenta602d5c2460b197866028cfb3d2aa2b7b3aea80c (diff)
downloadManaVerse-67ee3168a45ea09a863de5be2e0a94cf1afbe6dc.tar.gz
ManaVerse-67ee3168a45ea09a863de5be2e0a94cf1afbe6dc.tar.bz2
ManaVerse-67ee3168a45ea09a863de5be2e0a94cf1afbe6dc.tar.xz
ManaVerse-67ee3168a45ea09a863de5be2e0a94cf1afbe6dc.zip
Fix compilation with clang.
Diffstat (limited to 'src/gui/fonts/font.h')
-rw-r--r--src/gui/fonts/font.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/gui/fonts/font.h b/src/gui/fonts/font.h
index 6066c491f..9fb64af29 100644
--- a/src/gui/fonts/font.h
+++ b/src/gui/fonts/font.h
@@ -95,13 +95,13 @@ class Font final
void loadFont(std::string filename,
const int size,
- const int style = 0) restrict;
+ const int style = 0) restrict2;
- int getWidth(const std::string &text) const restrict A_WARN_UNUSED;
+ int getWidth(const std::string &text) const restrict2 A_WARN_UNUSED;
- int getHeight() const restrict A_WARN_UNUSED;
+ int getHeight() const restrict2 A_WARN_UNUSED;
- const TextChunkList *getCache() const restrict A_CONST A_WARN_UNUSED;
+ const TextChunkList *getCache() const restrict2 A_CONST A_WARN_UNUSED;
/**
* @see Font::drawString
@@ -111,26 +111,26 @@ class Font final
const Color &restrict col2,
const std::string &restrict text,
const int x,
- const int y) restrict A_NONNULL(2);
+ const int y) restrict2 A_NONNULL(2);
- void clear() restrict;
+ void clear() restrict2;
- void doClean() restrict;
+ void doClean() restrict2;
- void slowLogic(const int rnd) restrict;
+ void slowLogic(const int rnd) restrict2;
- int getCreateCounter() const restrict A_WARN_UNUSED
+ int getCreateCounter() const restrict2 A_WARN_UNUSED
{ return mCreateCounter; }
- int getDeleteCounter() const restrict A_WARN_UNUSED
+ int getDeleteCounter() const restrict2 A_WARN_UNUSED
{ return mDeleteCounter; }
int getStringIndexAt(const std::string &restrict text,
- const int x) const restrict A_WARN_UNUSED;
+ const int x) const restrict2 A_WARN_UNUSED;
- void generate(TextChunk &restrict chunk) restrict;
+ void generate(TextChunk &restrict chunk) restrict2;
- void insertChunk(TextChunk *const chunk) restrict;
+ void insertChunk(TextChunk *const chunk) restrict2;
static bool mSoftMode;