summaryrefslogtreecommitdiffstats
path: root/tqt/tqextscintillalexercss.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-04-04 13:24:41 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-04-04 13:59:21 +0900
commit3f2dc73d5a565121db00f4a0f050a48910b51623 (patch)
tree3a2f1b4b88fc316e2c3d87b5e83058cb346b2852 /tqt/tqextscintillalexercss.cpp
parent3c23eba2e71e6aebeb7ff5091fc69d050170e1d1 (diff)
downloadtqscintilla-3f2dc73d5a565121db00f4a0f050a48910b51623.tar.gz
tqscintilla-3f2dc73d5a565121db00f4a0f050a48910b51623.zip
Replace TRUE/FALSE with boolean values true/falseHEADmaster
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tqt/tqextscintillalexercss.cpp')
-rw-r--r--tqt/tqextscintillalexercss.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/tqt/tqextscintillalexercss.cpp b/tqt/tqextscintillalexercss.cpp
index c120a9d..0cb475f 100644
--- a/tqt/tqextscintillalexercss.cpp
+++ b/tqt/tqextscintillalexercss.cpp
@@ -32,8 +32,8 @@
// The ctor.
TQextScintillaLexerCSS::TQextScintillaLexerCSS(TQObject *parent,const char *name)
- : TQextScintillaLexer(parent,name), fold_comments(FALSE),
- fold_compact(TRUE)
+ : TQextScintillaLexer(parent,name), fold_comments(false),
+ fold_compact(true)
{
}
@@ -155,11 +155,11 @@ TQFont TQextScintillaLexerCSS::font(int style) const
case Tag:
case Important:
case AtRule:
- f.setBold(TRUE);
+ f.setBold(true);
break;
case IDSelector:
- f.setItalic(TRUE);
+ f.setItalic(true);
break;
}
}
@@ -293,24 +293,24 @@ void TQextScintillaLexerCSS::refreshProperties()
// Read properties from the settings.
bool TQextScintillaLexerCSS::readProperties(TQSettings &qs,const TQString &prefix)
{
- int rc = TRUE;
+ bool rc = true;
bool ok, flag;
// Read the fold comments flag.
- flag = qs.readBoolEntry(prefix + "foldcomments",FALSE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldcomments",false,&ok);
if (ok)
fold_comments = flag;
else
- rc = FALSE;
+ rc = false;
// Read the fold compact flag.
- flag = qs.readBoolEntry(prefix + "foldcompact",TRUE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldcompact",true,&ok);
if (ok)
fold_compact = flag;
else
- rc = FALSE;
+ rc = false;
return rc;
}
@@ -319,21 +319,21 @@ bool TQextScintillaLexerCSS::readProperties(TQSettings &qs,const TQString &prefi
// Write properties to the settings.
bool TQextScintillaLexerCSS::writeProperties(TQSettings &qs,const TQString &prefix) const
{
- int rc = TRUE;
+ bool rc = true;
// Write the fold comments flag.
if (!qs.writeEntry(prefix + "foldcomments",fold_comments))
- rc = FALSE;
+ rc = false;
// Write the fold compact flag.
if (!qs.writeEntry(prefix + "foldcompact",fold_compact))
- rc = FALSE;
+ rc = false;
return rc;
}
-// Return TRUE if comments can be folded.
+// Return true if comments can be folded.
bool TQextScintillaLexerCSS::foldComments() const
{
return fold_comments;
@@ -356,7 +356,7 @@ void TQextScintillaLexerCSS::setCommentProp()
}
-// Return TRUE if folds are compact.
+// Return true if folds are compact.
bool TQextScintillaLexerCSS::foldCompact() const
{
return fold_compact;