Coding style clean up

This commit is contained in:
Christophe Dumez
2012-02-20 19:30:53 +02:00
parent 9acac03f14
commit a8a7b61ea9
77 changed files with 2194 additions and 2194 deletions

View File

@@ -56,13 +56,13 @@ PowerManagement::~PowerManagement()
void PowerManagement::setActivityState(bool busy)
{
if(busy) setBusy();
if (busy) setBusy();
else setIdle();
}
void PowerManagement::setBusy()
{
if(m_busy) return;
if (m_busy) return;
m_busy = true;
#ifdef Q_WS_WIN
@@ -71,13 +71,13 @@ void PowerManagement::setBusy()
m_inhibitor->RequestBusy();
#elif defined(Q_WS_MAC)
IOReturn success = IOPMAssertionCreate(kIOPMAssertionTypeNoIdleSleep, kIOPMAssertionLevelOn, &m_assertionID);
if(success != kIOReturnSuccess) m_busy = false;
if (success != kIOReturnSuccess) m_busy = false;
#endif
}
void PowerManagement::setIdle()
{
if(!m_busy) return;
if (!m_busy) return;
m_busy = false;
#ifdef Q_WS_WIN