summaryrefslogtreecommitdiffstats
path: root/qmake/generators/win32/msvc_dsp.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-07-01 22:09:14 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-07-08 08:53:47 +0900
commitc03a4800879ab62692e017e01c825ba12a421ad0 (patch)
tree57aeff4300eb9fa64d193569f56b2d98305b49a2 /qmake/generators/win32/msvc_dsp.cpp
parent030b165ac197ce4c2eb62c7700dc4c10604637aa (diff)
downloadtqt-c03a4800879ab62692e017e01c825ba12a421ad0.tar.gz
tqt-c03a4800879ab62692e017e01c825ba12a421ad0.zip
Replace TRUE/FALSE with boolean values true/false - part 2
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'qmake/generators/win32/msvc_dsp.cpp')
-rw-r--r--qmake/generators/win32/msvc_dsp.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/qmake/generators/win32/msvc_dsp.cpp b/qmake/generators/win32/msvc_dsp.cpp
index 568ff616f..9dcf6ef94 100644
--- a/qmake/generators/win32/msvc_dsp.cpp
+++ b/qmake/generators/win32/msvc_dsp.cpp
@@ -43,7 +43,7 @@
#include <stdlib.h>
#include <time.h>
-DspMakefileGenerator::DspMakefileGenerator(TQMakeProject *p) : Win32MakefileGenerator(p), init_flag(FALSE)
+DspMakefileGenerator::DspMakefileGenerator(TQMakeProject *p) : Win32MakefileGenerator(p), init_flag(false)
{
}
@@ -55,7 +55,7 @@ DspMakefileGenerator::writeMakefile(TQTextStream &t)
/* for now just dump, I need to generated an empty dsp or something.. */
fprintf(stderr, "Project file not generated because all requirements not met:\n\t%s\n",
var("QMAKE_FAILED_REQUIREMENTS").latin1());
- return TRUE;
+ return true;
}
if(project->first("TEMPLATE") == "vcapp" ||
@@ -65,9 +65,9 @@ DspMakefileGenerator::writeMakefile(TQTextStream &t)
else if(project->first("TEMPLATE") == "subdirs") {
writeHeader(t);
writeSubDirs(t);
- return TRUE;
+ return true;
}
- return FALSE;
+ return false;
}
bool
@@ -86,7 +86,7 @@ DspMakefileGenerator::writeDspParts(TQTextStream &t)
TQFile file(dspfile_loc);
if(!file.open(IO_ReadOnly)) {
fprintf(stderr, "Cannot open dsp file: %s\n", dspfile.latin1());
- return FALSE;
+ return false;
}
TQTextStream dsp(&file);
@@ -374,7 +374,7 @@ DspMakefileGenerator::writeDspParts(TQTextStream &t)
f.close();
// create an output step for images not more than once
- bool imagesBuildDone = FALSE;
+ bool imagesBuildDone = false;
for( it = list.begin(); it != list.end(); ++it ) {
// beginGroupForFile((*it), t);
t << "# Begin Source File\n\nSOURCE=" << (*it) << endl;
@@ -384,7 +384,7 @@ DspMakefileGenerator::writeDspParts(TQTextStream &t)
uicpath = uicpath.replace(TQRegExp("\\..*$"), "") + " ";
if ( !imagesBuildDone ) {
- imagesBuildDone = TRUE;
+ imagesBuildDone = true;
TQString build = "\n\n# Begin Custom Build - Creating image collection...\n"
"InputPath=.\\" + base + "\n\n";
@@ -577,7 +577,7 @@ DspMakefileGenerator::writeDspParts(TQTextStream &t)
}
t << endl;
file.close();
- return TRUE;
+ return true;
}
@@ -588,7 +588,7 @@ DspMakefileGenerator::init()
if(init_flag)
return;
TQStringList::Iterator it;
- init_flag = TRUE;
+ init_flag = true;
const bool thread = project->isActiveConfig("thread");
@@ -818,7 +818,7 @@ DspMakefileGenerator::init()
TQString targetfilename = project->variables()["TARGET"].first();
project->variables()["TARGET"].first() += project->first("TARGET_EXT");
if ( project->isActiveConfig("moc") )
- setTQMocAware(TRUE);
+ setTQMocAware(true);
project->variables()["QMAKE_LIBS"] += project->variables()["LIBS"];
project->variables()["QMAKE_FILETAGS"] += TQStringList::split(' ',
@@ -827,7 +827,7 @@ DspMakefileGenerator::init()
for(it = l.begin(); it != l.end(); ++it) {
TQStringList &gdmf = project->variables()[(*it)];
for(TQStringList::Iterator inner = gdmf.begin(); inner != gdmf.end(); ++inner)
- (*inner) = Option::fixPathToTargetOS((*inner), FALSE);
+ (*inner) = Option::fixPathToTargetOS((*inner), false);
}
MakefileGenerator::init();
@@ -1008,7 +1008,7 @@ DspMakefileGenerator::beginGroupForFile(TQString file, TQTextStream &t,
{
if(project->isActiveConfig("flat"))
return;
- fileFixify(file, TQDir::currentDirPath(), TQDir::currentDirPath(), TRUE);
+ fileFixify(file, TQDir::currentDirPath(), TQDir::currentDirPath(), true);
file = file.section(Option::dir_sep, 0, -2);
if(file.right(Option::dir_sep.length()) != Option::dir_sep)
file += Option::dir_sep;