diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-28 18:11:49 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-03 19:23:45 +0900 |
commit | 0bd9d5459891e6fb17ee6802878f85e217cb9f54 (patch) | |
tree | 962f6ea26d1fab041fe3476fbbd64132ab8ada1b /lib/kofficecore/KoDocument.cpp | |
parent | cb258b7e39ffa5662b57e7d9006e69172a378d7e (diff) | |
download | koffice-r14.1.4.tar.gz koffice-r14.1.4.zip |
Replace TRUE/FALSE with boolean values true/falser14.1.4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit cf85b9c285a2b9baa87c9d0cb9d683b48e82a475)
Diffstat (limited to 'lib/kofficecore/KoDocument.cpp')
-rw-r--r-- | lib/kofficecore/KoDocument.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/kofficecore/KoDocument.cpp b/lib/kofficecore/KoDocument.cpp index 147b2ed1c..4cf569f68 100644 --- a/lib/kofficecore/KoDocument.cpp +++ b/lib/kofficecore/KoDocument.cpp @@ -230,7 +230,7 @@ KoDocument::KoDocument( TQWidget * parentWidget, const char *widgetName, TQObjec s_documentList->append(this); d = new Private; - m_bEmpty = TRUE; + m_bEmpty = true; connect( &d->m_autoSaveTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( slotAutoSave() ) ); setAutoSave( s_defaultAutoSave ); d->m_bSingleViewMode = singleViewMode; @@ -825,7 +825,7 @@ void KoDocument::paintChild( KoDocumentChild *child, TQPainter &painter, KoView manager->activeWidget() == (TQWidget *)view ) ) { // painter.setClipRegion( rgn ); - painter.setClipping( FALSE ); + painter.setClipping( false ); painter.setPen( black ); painter.fillRect( -5, -5, w + 10, 5, white ); @@ -855,7 +855,7 @@ void KoDocument::paintChild( KoDocumentChild *child, TQPainter &painter, KoView painter.fillRect( w, h / 2 - 3, 5, 5, color ); } - painter.setClipping( TRUE ); + painter.setClipping( true ); } } } @@ -891,7 +891,7 @@ bool KoDocument::saveChildren( KoStore* _store ) { //kdDebug(30003) << "KoDocument::saveChildren internal url: /" << i << endl; if ( !childDoc->saveToStore( _store, TQString::number( i++ ) ) ) - return FALSE; + return false; if (!isExporting ()) childDoc->setModified( false ); @@ -1968,7 +1968,7 @@ void KoDocument::setModified( bool mod ) KParts::ReadWritePart::setModified( mod ); if ( mod ) { - m_bEmpty = FALSE; + m_bEmpty = false; } else { // When saving this document, all non-external child documents get saved too. TQPtrListIterator<KoDocumentChild> it = children(); @@ -2278,15 +2278,15 @@ void KoDocument::setupXmlReader( TQXmlSimpleReader& reader, bool namespaceProces { if ( namespaceProcessing ) { - reader.setFeature( "http://xml.org/sax/features/namespaces", TRUE ); - reader.setFeature( "http://xml.org/sax/features/namespace-prefixes", FALSE ); + reader.setFeature( "http://xml.org/sax/features/namespaces", true ); + reader.setFeature( "http://xml.org/sax/features/namespace-prefixes", false ); } else { - reader.setFeature( "http://xml.org/sax/features/namespaces", FALSE ); - reader.setFeature( "http://xml.org/sax/features/namespace-prefixes", TRUE ); + reader.setFeature( "http://xml.org/sax/features/namespaces", false ); + reader.setFeature( "http://xml.org/sax/features/namespace-prefixes", true ); } - reader.setFeature( "http://trolltech.com/xml/features/report-whitespace-only-CharData", TRUE ); + reader.setFeature( "http://trolltech.com/xml/features/report-whitespace-only-CharData", true ); } |