diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-04 13:24:41 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-04 13:59:21 +0900 |
commit | 3f2dc73d5a565121db00f4a0f050a48910b51623 (patch) | |
tree | 3a2f1b4b88fc316e2c3d87b5e83058cb346b2852 /tqt/tqextscintillacommandset.cpp | |
parent | 3c23eba2e71e6aebeb7ff5091fc69d050170e1d1 (diff) | |
download | tqscintilla-master.tar.gz tqscintilla-master.zip |
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tqt/tqextscintillacommandset.cpp')
-rw-r--r-- | tqt/tqextscintillacommandset.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tqt/tqextscintillacommandset.cpp b/tqt/tqextscintillacommandset.cpp index 500649c..86fa881 100644 --- a/tqt/tqextscintillacommandset.cpp +++ b/tqt/tqextscintillacommandset.cpp @@ -569,7 +569,7 @@ TQextScintillaCommandSet::TQextScintillaCommandSet(TQextScintilla *qs) : tqsci(q }, }; - cmds.setAutoDelete(TRUE); + cmds.setAutoDelete(true); // Clear the default map. tqsci -> SendScintilla(TQextScintillaBase::SCI_CLEARALLCMDKEYS); @@ -582,7 +582,7 @@ TQextScintillaCommandSet::TQextScintillaCommandSet(TQextScintilla *qs) : tqsci(q // Read the command set from settings. bool TQextScintillaCommandSet::readSettings(TQSettings &qs,const char *prefix) { - bool rc = TRUE; + bool rc = true; TQString skey; for (TQextScintillaCommand *cmd = cmds.first(); cmd; cmd = cmds.next()) @@ -598,7 +598,7 @@ bool TQextScintillaCommandSet::readSettings(TQSettings &qs,const char *prefix) if (ok) cmd -> setKey(key); else - rc = FALSE; + rc = false; // Read the alternate key. key = qs.readNumEntry(skey + "alt",0,&ok); @@ -606,7 +606,7 @@ bool TQextScintillaCommandSet::readSettings(TQSettings &qs,const char *prefix) if (ok) cmd -> setAlternateKey(key); else - rc = FALSE; + rc = false; } return rc; @@ -616,7 +616,7 @@ bool TQextScintillaCommandSet::readSettings(TQSettings &qs,const char *prefix) // Write the command set to settings. bool TQextScintillaCommandSet::writeSettings(TQSettings &qs,const char *prefix) { - bool rc = TRUE; + bool rc = true; TQString skey; for (const TQextScintillaCommand *cmd = cmds.first(); cmd; cmd = cmds.next()) @@ -625,11 +625,11 @@ bool TQextScintillaCommandSet::writeSettings(TQSettings &qs,const char *prefix) // Write the key. if (!qs.writeEntry(skey + "key",cmd -> key())) - rc = FALSE; + rc = false; // Write the alternate key. if (!qs.writeEntry(skey + "alt",cmd -> alternateKey())) - rc = FALSE; + rc = false; } return rc; |