summaryrefslogtreecommitdiffstats
path: root/lib/kofficecore/KoDocument.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-03-28 18:11:49 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-04-03 10:36:14 +0900
commitcf85b9c285a2b9baa87c9d0cb9d683b48e82a475 (patch)
tree868514a6f6939c71ee95754268a4b850fa60c5a5 /lib/kofficecore/KoDocument.cpp
parenta6b8cc41e27c15bb670aa7c0c0464b6eb44099e9 (diff)
downloadkoffice-cf85b9c285a2b9baa87c9d0cb9d683b48e82a475.tar.gz
koffice-cf85b9c285a2b9baa87c9d0cb9d683b48e82a475.zip
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'lib/kofficecore/KoDocument.cpp')
-rw-r--r--lib/kofficecore/KoDocument.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/kofficecore/KoDocument.cpp b/lib/kofficecore/KoDocument.cpp
index dca3063e4..59d160e74 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 );
}