From 67ee3168a45ea09a863de5be2e0a94cf1afbe6dc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 24 Dec 2015 18:26:52 +0300 Subject: Fix compilation with clang. --- src/gui/fonts/font.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/gui/fonts/font.h') 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; -- cgit v1.2.3-60-g2f50