diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-24 18:26:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-24 18:26:52 +0300 |
commit | 67ee3168a45ea09a863de5be2e0a94cf1afbe6dc (patch) | |
tree | aa33639f3e70f81444b893bbbb99ab78f6beb2d6 /src/gui/fonts/textchunklist.cpp | |
parent | a602d5c2460b197866028cfb3d2aa2b7b3aea80c (diff) | |
download | mv-67ee3168a45ea09a863de5be2e0a94cf1afbe6dc.tar.gz mv-67ee3168a45ea09a863de5be2e0a94cf1afbe6dc.tar.bz2 mv-67ee3168a45ea09a863de5be2e0a94cf1afbe6dc.tar.xz mv-67ee3168a45ea09a863de5be2e0a94cf1afbe6dc.zip |
Fix compilation with clang.
Diffstat (limited to 'src/gui/fonts/textchunklist.cpp')
-rw-r--r-- | src/gui/fonts/textchunklist.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/fonts/textchunklist.cpp b/src/gui/fonts/textchunklist.cpp index 9458bf947..2b613b2da 100644 --- a/src/gui/fonts/textchunklist.cpp +++ b/src/gui/fonts/textchunklist.cpp @@ -33,7 +33,7 @@ TextChunkList::TextChunkList() : { } -void TextChunkList::insertFirst(TextChunk *const item) +void TextChunkList::insertFirst(TextChunk *restrict const item) { TextChunk *restrict const oldFirst = start; if (start) @@ -49,7 +49,7 @@ void TextChunkList::insertFirst(TextChunk *const item) searchWidth[item->text] = item; } -void TextChunkList::moveToFirst(TextChunk *const item) +void TextChunkList::moveToFirst(TextChunk *restrict const item) { if (item == start) return; @@ -70,7 +70,7 @@ void TextChunkList::moveToFirst(TextChunk *const item) start = item; } -void TextChunkList::remove(const TextChunk *const item) +void TextChunkList::remove(const TextChunk *restrict const item) { if (!item) return; |