summaryrefslogtreecommitdiffstats
path: root/tqt/tqextscintillalexerpython.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/tqextscintillalexerpython.cpp
parent3c23eba2e71e6aebeb7ff5091fc69d050170e1d1 (diff)
downloadtqscintilla-master.tar.gz
tqscintilla-master.zip
Replace TRUE/FALSE with boolean values true/falseHEADmaster
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tqt/tqextscintillalexerpython.cpp')
-rw-r--r--tqt/tqextscintillalexerpython.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/tqt/tqextscintillalexerpython.cpp b/tqt/tqextscintillalexerpython.cpp
index c1962f0..46fa85e 100644
--- a/tqt/tqextscintillalexerpython.cpp
+++ b/tqt/tqextscintillalexerpython.cpp
@@ -40,8 +40,8 @@ const char *TQextScintillaLexerPython::keywordClass =
// The ctor.
TQextScintillaLexerPython::TQextScintillaLexerPython(TQObject *parent,
const char *name)
- : TQextScintillaLexer(parent,name), fold_comments(FALSE),
- fold_quotes(FALSE), indent_warn(NoWarning)
+ : TQextScintillaLexer(parent,name), fold_comments(false),
+ fold_quotes(false), indent_warn(NoWarning)
{
}
@@ -188,7 +188,7 @@ TQFont TQextScintillaLexerPython::font(int style) const
case FunctionMethodName:
case Operator:
f = TQextScintillaLexer::font(style);
- f.setBold(TRUE);
+ f.setBold(true);
break;
default:
@@ -289,24 +289,24 @@ void TQextScintillaLexerPython::refreshProperties()
// Read properties from the settings.
bool TQextScintillaLexerPython::readProperties(TQSettings &qs,const TQString &prefix)
{
- int rc = TRUE, num;
- bool ok, flag;
+ int num;
+ bool ok, flag, rc = true;
// 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 quotes flag.
- flag = qs.readBoolEntry(prefix + "foldquotes",FALSE,&ok);
+ flag = qs.readBoolEntry(prefix + "foldquotes",false,&ok);
if (ok)
fold_quotes = flag;
else
- rc = FALSE;
+ rc = false;
// Read the indentation warning.
num = qs.readNumEntry(prefix + "indentwarning",(int)NoWarning,&ok);
@@ -314,7 +314,7 @@ bool TQextScintillaLexerPython::readProperties(TQSettings &qs,const TQString &pr
if (ok)
indent_warn = (IndentationWarning)num;
else
- rc = FALSE;
+ rc = false;
return rc;
}
@@ -323,25 +323,25 @@ bool TQextScintillaLexerPython::readProperties(TQSettings &qs,const TQString &pr
// Write properties to the settings.
bool TQextScintillaLexerPython::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 quotes flag.
if (!qs.writeEntry(prefix + "foldquotes",fold_quotes))
- rc = FALSE;
+ rc = false;
// Write the indentation warning.
if (!qs.writeEntry(prefix + "indentwarning",(int)indent_warn))
- rc = FALSE;
+ rc = false;
return rc;
}
-// Return TRUE if comments can be folded.
+// Return true if comments can be folded.
bool TQextScintillaLexerPython::foldComments() const
{
return fold_comments;
@@ -364,7 +364,7 @@ void TQextScintillaLexerPython::setCommentProp()
}
-// Return TRUE if quotes can be folded.
+// Return true if quotes can be folded.
bool TQextScintillaLexerPython::foldQuotes() const
{
return fold_quotes;