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 /kword/KWDocument.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 '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 c6469aceb..3edd614c1 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; } |