diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-11-26 00:51:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-11-27 20:33:15 +0300 |
commit | 0c20db8d108c4123fcc3ecb343759e68567a4d4e (patch) | |
tree | f577edeae7b4866d68c084a1eaa229e98c80ea8f /src/gui/fonts | |
parent | 2be4fc5b4eee97938657c9c8be73c4b91c8b9826 (diff) | |
download | manaverse-0c20db8d108c4123fcc3ecb343759e68567a4d4e.tar.gz manaverse-0c20db8d108c4123fcc3ecb343759e68567a4d4e.tar.bz2 manaverse-0c20db8d108c4123fcc3ecb343759e68567a4d4e.tar.xz manaverse-0c20db8d108c4123fcc3ecb343759e68567a4d4e.zip |
Remove extra ; from different code.
Diffstat (limited to 'src/gui/fonts')
-rw-r--r-- | src/gui/fonts/font.cpp | 8 | ||||
-rw-r--r-- | src/gui/fonts/textchunk.cpp | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/fonts/font.cpp b/src/gui/fonts/font.cpp index 9d09d7855..5ce6b88d0 100644 --- a/src/gui/fonts/font.cpp +++ b/src/gui/fonts/font.cpp @@ -124,7 +124,7 @@ Font::Font(std::string filename, { reportAlways("Error: requested load font %s with size %d", filename.c_str(), - size); + size) size = 4; } @@ -151,7 +151,7 @@ Font::Font(std::string filename, { #ifdef UNITTESTS reportAlways("Font load failed %s", - filename.c_str()); + filename.c_str()) #endif // UNITTESTS logger->error("Font::Font: " + std::string(SDL_GetError())); @@ -205,7 +205,7 @@ TTF_Font *Font::openFont(const char *const name, #ifndef UNITTESTS // +++ in future need trigger assert in unit tests here too reportAlways("Font::openFont font not exists: %s", - path.c_str()); + path.c_str()) #endif // UNITTESTS return nullptr; } @@ -489,7 +489,7 @@ void Font::insertChunk(TextChunk *const chunk) chunk->color, chunk->color2)); if (i != search.end()) { - delete2(chunk->img); + delete2(chunk->img) return; } diff --git a/src/gui/fonts/textchunk.cpp b/src/gui/fonts/textchunk.cpp index 9280b9241..75b9c9626 100644 --- a/src/gui/fonts/textchunk.cpp +++ b/src/gui/fonts/textchunk.cpp @@ -81,7 +81,7 @@ TextChunk::TextChunk(const std::string &restrict text0, TextChunk::~TextChunk() { - delete2(img); + delete2(img) #ifdef UNITTESTS textChunkCnt --; #endif // UNITTESTS @@ -198,6 +198,6 @@ void TextChunk::deleteImage() } else { - delete2(img); + delete2(img) } } |