summaryrefslogtreecommitdiff
path: root/src/gui/fonts
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/fonts')
-rw-r--r--src/gui/fonts/font.cpp8
-rw-r--r--src/gui/fonts/textchunk.cpp4
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)
}
}