From a7f1e6e2552d9cdbb3d76bff089db522248b9a24 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 30 May 2025 14:27:29 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 1 Signed-off-by: Michele Calgaro --- tools/qembed/qembed.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'tools/qembed/qembed.cpp') diff --git a/tools/qembed/qembed.cpp b/tools/qembed/qembed.cpp index b2be7e873..db4e4e52d 100644 --- a/tools/qembed/qembed.cpp +++ b/tools/qembed/qembed.cpp @@ -60,15 +60,15 @@ int main( int argc, char **argv ) } TQFile output; - bool output_hdr = FALSE; - bool images = FALSE; + bool output_hdr = false; + bool images = false; output.open( IO_WriteOnly, stdout ); TQTextStream out( &output ); TQPtrList list_image; TQPtrList list; - list.setAutoDelete( TRUE ); - list_image.setAutoDelete( TRUE ); + list.setAutoDelete( true ); + list_image.setAutoDelete( true ); long l = rand(); out << "#ifndef _QEMBED_" << l << endl; @@ -98,7 +98,7 @@ int main( int argc, char **argv ) if ( !images ) { out << "#include \n"; out << "#include \n"; - images = TRUE; + images = true; } } else { TQFile f( *it ); @@ -164,7 +164,7 @@ int main( int argc, char **argv ) out << "\n};\n\n"; } if ( !output_hdr ) { - output_hdr = TRUE; + output_hdr = true; out << header; } } @@ -234,9 +234,9 @@ int main( int argc, char **argv ) else out << "0, "; if ( e->alpha ) - out << "TRUE, "; + out << "true, "; else - out << "FALSE, "; + out << "false, "; out << "\"" << e->name << "\" },\n"; e = list_image.next(); } @@ -258,7 +258,7 @@ int main( int argc, char **argv ) " embed_image_vec[i].numColors,\n" " TQImage::BigEndian );\n" " if ( embed_image_vec[i].alpha )\n" -" img->setAlphaBuffer( TRUE );\n" +" img->setAlphaBuffer( true );\n" " dict.insert( name, img );\n" " break;\n" " }\n" -- cgit v1.2.3