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 10:36:14 +0900 |
commit | cf85b9c285a2b9baa87c9d0cb9d683b48e82a475 (patch) | |
tree | 868514a6f6939c71ee95754268a4b850fa60c5a5 /kword/KWDocument.cpp | |
parent | a6b8cc41e27c15bb670aa7c0c0464b6eb44099e9 (diff) | |
download | koffice-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 'kword/KWDocument.cpp')
-rw-r--r-- | kword/KWDocument.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kword/KWDocument.cpp b/kword/KWDocument.cpp index 78c927688..7844a12f8 100644 --- a/kword/KWDocument.cpp +++ b/kword/KWDocument.cpp @@ -503,7 +503,7 @@ bool KWDocument::initDoc(InitDocFlags flags, TQWidget* parentWidget) m_pageHeaderFooter.ptFooterBodySpacing = 10; m_pageHeaderFooter.ptFootNoteBodySpacing = 10; - bool ok = FALSE; + bool ok = false; if ( isEmbedded() ) { @@ -513,7 +513,7 @@ bool KWDocument::initDoc(InitDocFlags flags, TQWidget* parentWidget) if ( !ok ) showLoadingErrorDialog(); setEmpty(); - setModified( FALSE ); + setModified( false ); return ok; } else if (flags==KoDocument::InitDocEmpty) @@ -524,7 +524,7 @@ bool KWDocument::initDoc(InitDocFlags flags, TQWidget* parentWidget) if ( !ok ) showLoadingErrorDialog(); setEmpty(); - setModified( FALSE ); + setModified( false ); return ok; } @@ -558,7 +558,7 @@ bool KWDocument::initDoc(InitDocFlags flags, TQWidget* parentWidget) showLoadingErrorDialog(); setEmpty(); } - setModified( FALSE ); + setModified( false ); return ok; } @@ -606,7 +606,7 @@ void KWDocument::initEmpty() if ( !ok ) showLoadingErrorDialog(); resetURL(); - setModified( FALSE ); + setModified( false ); setEmpty(); } @@ -999,10 +999,10 @@ bool KWDocument::loadChildren( KoStore *store ) TQPtrListIterator<KoDocumentChild> it( children() ); for( ; it.current(); ++it ) { if ( !it.current()->loadDocument( store ) ) - return FALSE; + return false; } - return TRUE; + return true; } void KWDocument::loadPictureMap ( TQDomElement& domElement ) @@ -3699,7 +3699,7 @@ TQValueList<KoPictureKey> KWDocument::savePictureList() bool KWDocument::completeSaving( KoStore *store ) { if ( !store ) - return TRUE; + return true; TQString u = KURL( url() ).path(); @@ -3876,7 +3876,7 @@ KWPartFrameSet* KWDocument::insertObject( const KoRect& rect, KoDocumentEntry& e return 0; KWDocumentChild* ch = createChildDoc( rect, doc ); - setModified( TRUE ); + setModified( true ); KWPartFrameSet *frameset = new KWPartFrameSet( this, ch, TQString() ); KWFrame *frame = new KWFrame(frameset, rect.x(), rect.y(), rect.width(), rect.height() ); @@ -4103,7 +4103,7 @@ kdDebug() << "KWDocument::canRemovePage " << num<< endl; return false; } #ifdef DEBUG_PAGES - kdDebug(32002) << "KWDocument::canRemovePage " << num << "-> TRUE" << endl; + kdDebug(32002) << "KWDocument::canRemovePage " << num << "-> true" << endl; #endif return true; } |