summaryrefslogtreecommitdiffstats
path: root/tqt/tqextscintillalexerperl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqt/tqextscintillalexerperl.cpp')
-rw-r--r--tqt/tqextscintillalexerperl.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/tqt/tqextscintillalexerperl.cpp b/tqt/tqextscintillalexerperl.cpp
index e9858c5..1c294e1 100644
--- a/tqt/tqextscintillalexerperl.cpp
+++ b/tqt/tqextscintillalexerperl.cpp
@@ -33,8 +33,8 @@
// The ctor.
TQextScintillaLexerPerl::TQextScintillaLexerPerl(TQObject *parent,
const char *name)
- : TQextScintillaLexer(parent,name), fold_comments(FALSE),
- fold_compact(TRUE)
+ : TQextScintillaLexer(parent,name), fold_comments(false),
+ fold_compact(true)
{
}
@@ -140,10 +140,10 @@ bool TQextScintillaLexerPerl::eolFill(int style) const
case DoubleQuotedHereDocument:
case BacktickHereDocument:
case PODVerbatim:
- return TRUE;
+ return true;
}
- return FALSE;
+ return false;
}
@@ -174,7 +174,7 @@ TQFont TQextScintillaLexerPerl::font(int style) const
case Operator:
case DoubleQuotedHereDocument:
f = TQextScintillaLexer::font(style);
- f.setBold(TRUE);
+ f.setBold(true);
break;
case DoubleQuotedString:
@@ -190,7 +190,7 @@ TQFont TQextScintillaLexerPerl::font(int style) const
case BacktickHereDocument:
f = TQextScintillaLexer::font(style);
- f.setItalic(TRUE);
+ f.setItalic(true);
break;
default:
@@ -399,24 +399,24 @@ void TQextScintillaLexerPerl::refreshProperties()
// Read properties from the settings.
bool TQextScintillaLexerPerl::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;
}
@@ -425,21 +425,21 @@ bool TQextScintillaLexerPerl::readProperties(TQSettings &qs,const TQString &pref
// Write properties to the settings.
bool TQextScintillaLexerPerl::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 TQextScintillaLexerPerl::foldComments() const
{
return fold_comments;
@@ -462,7 +462,7 @@ void TQextScintillaLexerPerl::setCommentProp()
}
-// Return TRUE if folds are compact.
+// Return true if folds are compact.
bool TQextScintillaLexerPerl::foldCompact() const
{
return fold_compact;