summaryrefslogtreecommitdiffstats
path: root/src/ui/edit.cpp
diff options
context:
space:
mode:
authorkrzys-h <krzys_h@interia.pl>2013-05-01 13:19:10 +0200
committerkrzys-h <krzys_h@interia.pl>2013-05-01 13:19:10 +0200
commit9e1870f6bdb24e278c06929b8bd13225a7fdf8d3 (patch)
treee95cb1832a1584ff2e6c5e02941a2d1f80c83bcd /src/ui/edit.cpp
parent293376b82d8fa313b17685b73c110a33123f9077 (diff)
downloadcolobot-9e1870f6bdb24e278c06929b8bd13225a7fdf8d3.tar.gz
colobot-9e1870f6bdb24e278c06929b8bd13225a7fdf8d3.tar.bz2
colobot-9e1870f6bdb24e278c06929b8bd13225a7fdf8d3.zip
Removed some warnings
+ fix for previous commit
Diffstat (limited to 'src/ui/edit.cpp')
-rw-r--r--src/ui/edit.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/edit.cpp b/src/ui/edit.cpp
index 7e657c8..c9831dd 100644
--- a/src/ui/edit.cpp
+++ b/src/ui/edit.cpp
@@ -688,7 +688,7 @@ void CEdit::MouseMove(Math::Point mouse)
int CEdit::MouseDetect(Math::Point mouse)
{
Math::Point pos;
- float indentLength, offset, size;
+ float indentLength = 0.0f, offset, size;
int i, len, c;
bool bTitle;
@@ -886,7 +886,7 @@ bool CEdit::HyperGo(EventType event)
void CEdit::Draw()
{
Math::Point pos, ppos, dim, start, end;
- float size, indentLength;
+ float size = 0.0f, indentLength = 0.0f;
int i, j, beg, len, c1, c2, o1, o2, eol, iIndex, line;
if ( (m_state & STATE_VISIBLE) == 0 ) return;
@@ -1877,7 +1877,7 @@ bool CEdit::WriteText(std::string filename)
FILE* file;
char buffer[1000+20];
int i, j, k, n;
- float iDim;
+ float iDim = 0.0f;
if ( filename[0] == 0 ) return false;
file = fopen(filename.c_str(), "wb");
@@ -2397,7 +2397,7 @@ void CEdit::MoveChar(int move, bool bWord, bool bSelect)
void CEdit::MoveLine(int move, bool bWord, bool bSelect)
{
- float column, indentLength;
+ float column, indentLength = 0.0f;
int i, line, c;
if ( move == 0 ) return;
@@ -2956,7 +2956,7 @@ bool CEdit::MinMaj(bool bMaj)
void CEdit::Justif()
{
- float width, size, indentLength;
+ float width, size, indentLength = 0.0f;
int i, j, line, indent;
bool bDual, bString, bRem;