Skip to content

Commit

Permalink
Project-wide replace TRUE/FALSE with true/false
Browse files Browse the repository at this point in the history
TRUE and FALSE are historic windows macros which were created before C++
had built-in true/false keywords. They work for backwards compatibility
reasons with old Windows code but they should not be used anymore and
replaced when ever they are found.
  • Loading branch information
stuartm committed Aug 21, 2011
1 parent e0cb00f commit e6dfefb
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion mythplugins/mythgame/mythgame/rominfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class RomInfo
static RomInfo *GetRomInfoById(int id);

RomInfo(int lid = 0, QString lromname = "", QString lsystem = "", QString lgamename ="",
QString lgenre = "", QString lyear = "", bool lfavorite = FALSE,
QString lgenre = "", QString lyear = "", bool lfavorite = false,
QString lrompath = "", QString lcountry ="", QString lcrc_value = "",
int ldiskcount = 0, QString lgametype = "", int lromcount = 0,
QString lallsystems = "", QString lplot = "", QString lpublisher = "",
Expand Down
8 changes: 4 additions & 4 deletions mythplugins/mythmusic/mythmusic/avfdecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ avfDecoder::~avfDecoder(void)

void avfDecoder::stop()
{
user_stop = TRUE;
user_stop = true;
}

void avfDecoder::writeBlock()
Expand Down Expand Up @@ -332,7 +332,7 @@ void avfDecoder::seek(double pos)

void avfDecoder::deinit()
{
inited = user_stop = finish = FALSE;
inited = user_stop = finish = false;
freq = bitrate = 0;
stat = m_channels = 0;
m_sampleFmt = FORMAT_NONE;
Expand Down Expand Up @@ -421,7 +421,7 @@ void avfDecoder::run()
{
LOG(VB_GENERAL, LOG_ERR, "Read frame failed");
LOG(VB_FILE, LOG_ERR, ("... for file '" + filename) + "'");
finish = TRUE;
finish = true;
break;
}

Expand Down Expand Up @@ -477,7 +477,7 @@ void avfDecoder::run()
}

if (user_stop)
inited = FALSE;
inited = false;

else if (output())
{
Expand Down
2 changes: 1 addition & 1 deletion mythplugins/mythmusic/mythmusic/cddecoder-darwin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ CdDecoder::CdDecoder(const QString &file, DecoderFactory *d, QIODevice *i,
: Decoder(d, i, o)
{
filename = file;
inited = FALSE;
inited = false;
}

CdDecoder::~CdDecoder(void)
Expand Down
2 changes: 1 addition & 1 deletion mythplugins/mythmusic/mythmusic/cddecoder-windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ CdDecoder::CdDecoder(const QString &file, DecoderFactory *d, QIODevice *i,
: Decoder(d, i, o)
{
filename = file;
inited = FALSE;
inited = false;
}

CdDecoder::~CdDecoder(void)
Expand Down
12 changes: 6 additions & 6 deletions mythplugins/mythmusic/mythmusic/cddecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ CdDecoder::~CdDecoder(void)

void CdDecoder::stop()
{
user_stop = TRUE;
user_stop = true;
}

void CdDecoder::writeBlock()
Expand All @@ -86,7 +86,7 @@ void CdDecoder::writeBlock()

bool CdDecoder::initialize()
{
inited = user_stop = finish = FALSE;
inited = user_stop = finish = false;
freq = bitrate = 0;
stat = chan = 0;
seekTime = -1.0;
Expand Down Expand Up @@ -149,7 +149,7 @@ bool CdDecoder::initialize()
output_at = 0;

setCDSpeed(2);
inited = TRUE;
inited = true;
return TRUE;
}

Expand All @@ -175,7 +175,7 @@ void CdDecoder::deinit()
device = NULL;
paranoia = NULL;

inited = user_stop = finish = FALSE;
inited = user_stop = finish = false;
freq = bitrate = 0;
stat = chan = 0;
setInput(0);
Expand Down Expand Up @@ -239,7 +239,7 @@ void CdDecoder::run()
finish = true;
}
else
finish = TRUE;
finish = true;
}
}

Expand All @@ -266,7 +266,7 @@ void CdDecoder::run()
}

if (user_stop)
inited = FALSE;
inited = false;

else if (output())
{
Expand Down
2 changes: 1 addition & 1 deletion mythplugins/mythmusic/mythmusic/decoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class Decoder : public MThread, public MythObservable
static bool supports(const QString &);
static void registerFactory(DecoderFactory *);
static Decoder *create(const QString &, QIODevice *, AudioOutput *,
bool = FALSE);
bool = false);
static void SetLocationFormatUseTags(void);

protected:
Expand Down
4 changes: 2 additions & 2 deletions mythplugins/mythmusic/mythmusic/visualize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ bool Spectrum::process(VisualNode *node)

if (magR != 1 || magL != 1)
{
allZero = FALSE;
allZero = false;
}

magnitudesp[i] = magL;
Expand Down Expand Up @@ -912,7 +912,7 @@ bool Gears::process(VisualNode *node)

if (magR != 1 || magL != 1)
{
allZero = FALSE;
allZero = false;
}

magnitudesp[i] = magL;
Expand Down
6 changes: 3 additions & 3 deletions mythtv/libs/libmyth/mythwizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ void MythWizard::addPage( QWidget * page, const QString & title )
int i = d->pages.size();

if ( i > 0 )
d->pages[i - 1]->nextEnabled = TRUE;
d->pages[i - 1]->nextEnabled = true;

MythWizardPrivate::Page * p = new MythWizardPrivate::Page( page, title );
p->backEnabled = ( i > 0 );
Expand All @@ -201,7 +201,7 @@ void MythWizard::insertPage( QWidget * page, const QString & title, int index )
index = d->pages.size();

if ( index > 0 && ( index == (int)d->pages.size() ) )
d->pages[index - 1]->nextEnabled = TRUE;
d->pages[index - 1]->nextEnabled = true;

MythWizardPrivate::Page * p = new MythWizardPrivate::Page( page, title );
p->backEnabled = ( index > 0 );
Expand Down Expand Up @@ -424,7 +424,7 @@ MythPushButton * MythWizard::cancelButton() const

void MythWizard::layOutButtonRow( QHBoxLayout * layout )
{
bool hasEarlyFinish = FALSE;
bool hasEarlyFinish = false;

int i = d->pages.size() - 2;
while ( !hasEarlyFinish && i >= 0 )
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/system-windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ void MythSystemWindows::Fork(time_t timeout)

// Set the bInheritHandle flag so pipe handles are inherited.
saAttr.nLength = sizeof(SECURITY_ATTRIBUTES);
saAttr.bInheritHandle = TRUE;
saAttr.bInheritHandle = true;
saAttr.lpSecurityDescriptor = NULL;

/* set up pipes */
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythfreemheg/Groups.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ void MHTransitionTo::Initialise(MHParseNode *p, MHEngine *engine)
if (p->GetArgCount() > 1) {
MHParseNode *pCtag = p->GetArgN(1);
if (pCtag->m_nNodeType == MHParseNode::PNInt) {
m_fIsTagged = TRUE;
m_fIsTagged = true;
m_nConnectionTag = pCtag->GetIntValue();
}
}
Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/dxva2decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ void DXVA2Decoder::InitFormat(void)
m_format.InputSampleFreq.Numerator = 0;
m_format.InputSampleFreq.Denominator = 0;
m_format.OutputFrameFreq = m_format.InputSampleFreq;
m_format.UABProtectionLevel = FALSE;
m_format.UABProtectionLevel = false;
m_format.Reserved = 0;
}

Expand Down
2 changes: 1 addition & 1 deletion mythtv/libs/libmythui/mythrender_d3d9.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ bool MythRenderD3D9::Create(QSize size, HWND window)
ZeroMemory(&d3dpp, sizeof(D3DPRESENT_PARAMETERS));
d3dpp.BackBufferFormat = m_adaptor_fmt;
d3dpp.hDeviceWindow = window;
d3dpp.Windowed = TRUE;
d3dpp.Windowed = true;
d3dpp.BackBufferWidth = size.width();
d3dpp.BackBufferHeight = size.height();
d3dpp.BackBufferCount = 1;
Expand Down
2 changes: 1 addition & 1 deletion mythtv/programs/mythbackend/mediaserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ MediaServer::MediaServer(void) :
LOG(VB_UPNP, LOG_INFO, "MediaServer:ctor:End");
}

void MediaServer::Init(bool bIsMaster, bool bDisableUPnp /* = FALSE */)
void MediaServer::Init(bool bIsMaster, bool bDisableUPnp /* = false */)
{
LOG(VB_UPNP, LOG_INFO, "MediaServer:Init:Begin");

Expand Down
2 changes: 1 addition & 1 deletion mythtv/programs/mythlcdserver/lcdprocclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ void LCDProcClient::init()
QString aString;
lcd_keystring = "";

connected = TRUE;
connected = true;

// This gets called when we receive the "connect" string from the server
// indicating that "hello" was succesful
Expand Down

0 comments on commit e6dfefb

Please sign in to comment.