summaryrefslogtreecommitdiff
path: root/src/session.cpp
diff options
context:
space:
mode:
authorErkin Bahceci <erkinbah@gmail.com>2009-07-17 17:20:23 -0500
committerErkin Bahceci <erkinbah@gmail.com>2009-07-17 17:20:23 -0500
commit1539fce79cc73bb31732cd3f2ad02be0d7b52821 (patch)
tree32805fcac0de3cf1b21e946b8b903578bf0c7ead /src/session.cpp
parent7fff3541afc6595dd7f64ef7abeb587c254b4b41 (diff)
downloadunity-window-decorator-1539fce79cc73bb31732cd3f2ad02be0d7b52821.tar.gz
unity-window-decorator-1539fce79cc73bb31732cd3f2ad02be0d7b52821.tar.bz2
Convert Bool -> bool, TRUE -> true, FALSE -> false.
Diffstat (limited to 'src/session.cpp')
-rw-r--r--src/session.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/session.cpp b/src/session.cpp
index 98cedd6..c05226c 100644
--- a/src/session.cpp
+++ b/src/session.cpp
@@ -283,7 +283,7 @@ CompSession::init (char *prevClientId)
errorBuffer);
else
{
- connected = TRUE;
+ connected = true;
if (prevClientId)
smPrevClientId = strdup (prevClientId);
}
@@ -298,7 +298,7 @@ CompSession::close ()
setRestartStyle (smcConnection, SmRestartIfRunning);
if (SmcCloseConnection (smcConnection, 0, NULL) != SmcConnectionInUse)
- connected = FALSE;
+ connected = false;
if (smClientId)
{
@@ -378,7 +378,7 @@ iceNewConnection (IceConn connection,
POLLIN | POLLPRI | POLLHUP | POLLERR,
boost::bind (iceProcessMessages, connection));
- iceConnected = 1;
+ iceConnected = true;
}
else
{
@@ -389,7 +389,7 @@ iceNewConnection (IceConn connection,
screen->removeWatchFd (iceWatchFdHandle);
iceWatchFdHandle = 0;
- iceConnected = 0;
+ iceConnected = false;
}
}
}
@@ -408,7 +408,7 @@ iceErrorHandler (IceConn connection)
static void
iceInit (void)
{
- static Bool iceInitialized = 0;
+ static bool iceInitialized = false;
if (!iceInitialized)
{
@@ -422,6 +422,6 @@ iceInit (void)
IceAddConnectionWatch (iceNewConnection, NULL);
- iceInitialized = 1;
+ iceInitialized = true;
}
}