summaryrefslogtreecommitdiff
path: root/src/gui/sdlfont.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-26 15:06:13 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-26 15:06:13 +0300
commit5560a44ff5beea4fc2b88a589a3f915b9d0555d2 (patch)
treee570b5c5accb41454c101bbee2e5410ea7c7be95 /src/gui/sdlfont.cpp
parentef0b7f33051c43e6f93877cdfd49c1f8e30ad141 (diff)
downloadmanaverse-5560a44ff5beea4fc2b88a589a3f915b9d0555d2.tar.gz
manaverse-5560a44ff5beea4fc2b88a589a3f915b9d0555d2.tar.bz2
manaverse-5560a44ff5beea4fc2b88a589a3f915b9d0555d2.tar.xz
manaverse-5560a44ff5beea4fc2b88a589a3f915b9d0555d2.zip
fix code style.
Diffstat (limited to 'src/gui/sdlfont.cpp')
-rw-r--r--src/gui/sdlfont.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/gui/sdlfont.cpp b/src/gui/sdlfont.cpp
index 4e71de061..0b4f57baa 100644
--- a/src/gui/sdlfont.cpp
+++ b/src/gui/sdlfont.cpp
@@ -59,11 +59,11 @@ SDLTextChunkSmall::SDLTextChunkSmall(const std::string &text0,
{
}
-SDLTextChunkSmall::SDLTextChunkSmall(const SDLTextChunkSmall &old)
+SDLTextChunkSmall::SDLTextChunkSmall(const SDLTextChunkSmall &old) :
+ text(old.text),
+ color(old.color),
+ color2(old.color2)
{
- text = old.text;
- color = old.color;
- color2 = old.color2;
}
bool SDLTextChunkSmall::operator==(const SDLTextChunkSmall &chunk) const
@@ -96,7 +96,7 @@ bool SDLTextChunkSmall::operator<(const SDLTextChunkSmall &chunk) const
}
SDLTextChunk::SDLTextChunk(const std::string &text0, const gcn::Color &color0,
- const gcn::Color &color1) :
+ const gcn::Color &color1) :
img(nullptr),
text(text0),
color(color0),
@@ -209,7 +209,9 @@ void SDLTextChunk::generate(TTF_Font *const font, const float alpha)
TextChunkList::TextChunkList() :
start(nullptr),
end(nullptr),
- size(0)
+ size(0),
+ search(),
+ searchWidth()
{
}