summaryrefslogtreecommitdiffstats
path: root/src/ui/interface.cpp
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-06-10 15:28:12 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-06-10 15:28:12 +0200
commit697fbdabf10d956e0f13bfbc9414d3db40f0c535 (patch)
treeab80ba3119d07b11da5478009b905edb702c103f /src/ui/interface.cpp
parent680af178196217bdd255d2bc851f240983144ac1 (diff)
downloadcolobot-697fbdabf10d956e0f13bfbc9414d3db40f0c535.tar.gz
colobot-697fbdabf10d956e0f13bfbc9414d3db40f0c535.tar.bz2
colobot-697fbdabf10d956e0f13bfbc9414d3db40f0c535.zip
BOOL -> bool; additional fixes in constructors/destructors
Diffstat (limited to 'src/ui/interface.cpp')
-rw-r--r--src/ui/interface.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ui/interface.cpp b/src/ui/interface.cpp
index 75afd27..99b4755 100644
--- a/src/ui/interface.cpp
+++ b/src/ui/interface.cpp
@@ -489,7 +489,7 @@ CMap* CInterface::CreateMap(FPOINT pos, FPOINT dim, int icon, EventMsg eventMsg)
// Removes a control.
-BOOL CInterface::DeleteControl(EventMsg eventMsg)
+bool CInterface::DeleteControl(EventMsg eventMsg)
{
int i;
@@ -501,11 +501,11 @@ BOOL CInterface::DeleteControl(EventMsg eventMsg)
{
delete m_table[i];
m_table[i] = 0;
- return TRUE;
+ return true;
}
}
}
- return FALSE;
+ return false;
}
// Gives a control.
@@ -529,7 +529,7 @@ CControl* CInterface::SearchControl(EventMsg eventMsg)
// Management of an event.
-BOOL CInterface::EventProcess(const Event &event)
+bool CInterface::EventProcess(const Event &event)
{
int i;
@@ -549,18 +549,18 @@ BOOL CInterface::EventProcess(const Event &event)
{
if ( !m_table[i]->EventProcess(event) )
{
- return FALSE;
+ return false;
}
}
}
- return TRUE;
+ return true;
}
// Gives the tooltip binding to the window.
-BOOL CInterface::GetTooltip(FPOINT pos, char* name)
+bool CInterface::GetTooltip(FPOINT pos, char* name)
{
int i;
@@ -570,11 +570,11 @@ BOOL CInterface::GetTooltip(FPOINT pos, char* name)
{
if ( m_table[i]->GetTooltip(pos, name) )
{
- return TRUE;
+ return true;
}
}
}
- return FALSE;
+ return false;
}