diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-31 15:40:28 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-31 15:48:52 +0900 |
| commit | 66dc020d264d1fe4ebe235e5dd7eceb863007d7c (patch) | |
| tree | 20ec5c89988c1ed470adf0893343f4d9c5119905 /lib/libchmfile/libchmfileimpl.cpp | |
| parent | 0ab7a6fc13973ab74f2116c3260cec68a766f85e (diff) | |
| download | kchmviewer-66dc020d264d1fe4ebe235e5dd7eceb863007d7c.tar.gz kchmviewer-66dc020d264d1fe4ebe235e5dd7eceb863007d7c.zip | |
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'lib/libchmfile/libchmfileimpl.cpp')
| -rw-r--r-- | lib/libchmfile/libchmfileimpl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libchmfile/libchmfileimpl.cpp b/lib/libchmfile/libchmfileimpl.cpp index 51bd7b4..63fc376 100644 --- a/lib/libchmfile/libchmfileimpl.cpp +++ b/lib/libchmfile/libchmfileimpl.cpp @@ -1032,18 +1032,18 @@ bool LCHMFileImpl::parseFileAndFillArray( const TQString & file, QT34VECTOR< LCH TQString name_pattern = "name=", value_pattern = "value="; TQString pname, pvalue; - if ( (offset = tag.find (name_pattern, 0, FALSE)) == -1 ) + if ( (offset = tag.find (name_pattern, 0, false)) == -1 ) tqFatal ("LCHMFileImpl::ParseAndFillTopicsTree: bad <param> tag '%s': no name=\n", tag.ascii()); // offset+5 skips 'name=' - offset = findStringInQuotes (tag, offset + name_pattern.length(), pname, TRUE, FALSE); + offset = findStringInQuotes (tag, offset + name_pattern.length(), pname, true, false); pname = pname.lower(); - if ( (offset = tag.find (value_pattern, offset, FALSE)) == -1 ) + if ( (offset = tag.find (value_pattern, offset, false)) == -1 ) tqFatal ("LCHMFileImpl::ParseAndFillTopicsTree: bad <param> tag '%s': no value=\n", tag.ascii()); // offset+6 skips 'value=' - findStringInQuotes (tag, offset + value_pattern.length(), pvalue, FALSE, TRUE); + findStringInQuotes (tag, offset + value_pattern.length(), pvalue, false, true); //tqDebug ("<param>: name '%s', value '%s'", pname.ascii(), pvalue.ascii()); |
