diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 19:59:04 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 20:26:18 +0100 |
commit | aee7aa2b5c21984b47bf8d76bb5d3468fae93cd9 (patch) | |
tree | c48a33236c461d9f10d2c0d5aa9ce8eeedcb8e82 /writerperfect | |
parent | ff4e258ba250cb00d19b8633379db4dab20a76c2 (diff) |
bool improvements
Change-Id: Iae9e3840b89b6204fc458226ba0e046d5303dd52
Diffstat (limited to 'writerperfect')
13 files changed, 16 insertions, 16 deletions
diff --git a/writerperfect/source/common/WPXSvStream.cxx b/writerperfect/source/common/WPXSvStream.cxx index 73f677410a09..f20deb60299f 100644 --- a/writerperfect/source/common/WPXSvStream.cxx +++ b/writerperfect/source/common/WPXSvStream.cxx @@ -162,7 +162,7 @@ void OLEStorageImpl::initialize(SvStream *const pStream) if (!pStream) return; - mxRootStorage.ref = new SotStorage( pStream, sal_True ); + mxRootStorage.ref = new SotStorage( pStream, true ); traverse(mxRootStorage.ref, ""); @@ -218,7 +218,7 @@ void OLEStorageImpl::traverse(const SotStorageRef &rStorage, const rtl::OUString } else { - assert(0); + assert(false); } } } @@ -597,7 +597,7 @@ const char *WPXSvInputStreamImpl::subStreamName(const unsigned id) bool WPXSvInputStreamImpl::existsSubStream(const char *const name) { if (!name) - return 0; + return false; if ((mnLength == 0) || !mxStream.is() || !mxSeekable.is()) return false; diff --git a/writerperfect/source/draw/CDRImportFilter.cxx b/writerperfect/source/draw/CDRImportFilter.cxx index 5485448e20a4..1a00d23ccf15 100644 --- a/writerperfect/source/draw/CDRImportFilter.cxx +++ b/writerperfect/source/draw/CDRImportFilter.cxx @@ -68,7 +68,7 @@ throw (RuntimeException) } if ( !xInputStream.is() ) { - OSL_ASSERT( 0 ); + OSL_ASSERT( false ); return sal_False; } diff --git a/writerperfect/source/draw/CMXImportFilter.cxx b/writerperfect/source/draw/CMXImportFilter.cxx index 5f8ad32bbca1..63bf9eab127b 100644 --- a/writerperfect/source/draw/CMXImportFilter.cxx +++ b/writerperfect/source/draw/CMXImportFilter.cxx @@ -68,7 +68,7 @@ throw (RuntimeException) } if ( !xInputStream.is() ) { - OSL_ASSERT( 0 ); + OSL_ASSERT( false ); return sal_False; } diff --git a/writerperfect/source/draw/FreehandImportFilter.cxx b/writerperfect/source/draw/FreehandImportFilter.cxx index 62beb4089119..d88976a2c0ee 100644 --- a/writerperfect/source/draw/FreehandImportFilter.cxx +++ b/writerperfect/source/draw/FreehandImportFilter.cxx @@ -64,7 +64,7 @@ throw (RuntimeException) } if ( !xInputStream.is() ) { - OSL_ASSERT( 0 ); + OSL_ASSERT( false ); return sal_False; } diff --git a/writerperfect/source/draw/MSPUBImportFilter.cxx b/writerperfect/source/draw/MSPUBImportFilter.cxx index 3e41dd8062f9..2330a8b7da75 100644 --- a/writerperfect/source/draw/MSPUBImportFilter.cxx +++ b/writerperfect/source/draw/MSPUBImportFilter.cxx @@ -64,7 +64,7 @@ throw (RuntimeException) } if ( !xInputStream.is() ) { - OSL_ASSERT( 0 ); + OSL_ASSERT( false ); return sal_False; } diff --git a/writerperfect/source/draw/VisioImportFilter.cxx b/writerperfect/source/draw/VisioImportFilter.cxx index b1f5266f9213..3d5f1936df85 100644 --- a/writerperfect/source/draw/VisioImportFilter.cxx +++ b/writerperfect/source/draw/VisioImportFilter.cxx @@ -64,7 +64,7 @@ throw (RuntimeException) } if ( !xInputStream.is() ) { - OSL_ASSERT( 0 ); + OSL_ASSERT( false ); return sal_False; } diff --git a/writerperfect/source/draw/WPGImportFilter.cxx b/writerperfect/source/draw/WPGImportFilter.cxx index 6c2cc2152416..aed95d042f6d 100644 --- a/writerperfect/source/draw/WPGImportFilter.cxx +++ b/writerperfect/source/draw/WPGImportFilter.cxx @@ -70,7 +70,7 @@ throw (RuntimeException) } if ( !xInputStream.is() ) { - OSL_ASSERT( 0 ); + OSL_ASSERT( false ); return sal_False; } diff --git a/writerperfect/source/impress/KeynoteImportFilter.cxx b/writerperfect/source/impress/KeynoteImportFilter.cxx index a63357c33f1f..9b22018360b1 100644 --- a/writerperfect/source/impress/KeynoteImportFilter.cxx +++ b/writerperfect/source/impress/KeynoteImportFilter.cxx @@ -123,7 +123,7 @@ throw (RuntimeException) } if ( !xInputStream.is() ) { - OSL_ASSERT( 0 ); + OSL_ASSERT( false ); return sal_False; } diff --git a/writerperfect/source/writer/AbiWordImportFilter.cxx b/writerperfect/source/writer/AbiWordImportFilter.cxx index 5cbefd6aff5d..69d01bae81a0 100644 --- a/writerperfect/source/writer/AbiWordImportFilter.cxx +++ b/writerperfect/source/writer/AbiWordImportFilter.cxx @@ -70,7 +70,7 @@ throw (RuntimeException) } if ( !xInputStream.is() ) { - OSL_ASSERT( 0 ); + OSL_ASSERT( false ); return sal_False; } diff --git a/writerperfect/source/writer/EBookImportFilter.cxx b/writerperfect/source/writer/EBookImportFilter.cxx index 0bf53edb495f..ff1ec210ff74 100644 --- a/writerperfect/source/writer/EBookImportFilter.cxx +++ b/writerperfect/source/writer/EBookImportFilter.cxx @@ -73,12 +73,12 @@ throw (RuntimeException) } if ( sFilterName.isEmpty() ) { - OSL_ASSERT( 0 ); + OSL_ASSERT( false ); return sal_False; } if ( !xInputStream.is() ) { - OSL_ASSERT( 0 ); + OSL_ASSERT( false ); return sal_False; } diff --git a/writerperfect/source/writer/MSWorksImportFilter.cxx b/writerperfect/source/writer/MSWorksImportFilter.cxx index e5d739996d2a..888e005d73a5 100644 --- a/writerperfect/source/writer/MSWorksImportFilter.cxx +++ b/writerperfect/source/writer/MSWorksImportFilter.cxx @@ -70,7 +70,7 @@ throw (RuntimeException) } if ( !xInputStream.is() ) { - OSL_ASSERT( 0 ); + OSL_ASSERT( false ); return sal_False; } diff --git a/writerperfect/source/writer/MWAWImportFilter.cxx b/writerperfect/source/writer/MWAWImportFilter.cxx index 0336dff8200d..ed12e562fd3b 100644 --- a/writerperfect/source/writer/MWAWImportFilter.cxx +++ b/writerperfect/source/writer/MWAWImportFilter.cxx @@ -69,7 +69,7 @@ throw (RuntimeException) } if ( !xInputStream.is() ) { - OSL_ASSERT( 0 ); + OSL_ASSERT( false ); return sal_False; } diff --git a/writerperfect/source/writer/WordPerfectImportFilter.cxx b/writerperfect/source/writer/WordPerfectImportFilter.cxx index de22e036d10e..fca2faa3d211 100644 --- a/writerperfect/source/writer/WordPerfectImportFilter.cxx +++ b/writerperfect/source/writer/WordPerfectImportFilter.cxx @@ -97,7 +97,7 @@ throw (RuntimeException) } if ( !xInputStream.is() ) { - OSL_ASSERT( 0 ); + OSL_ASSERT( false ); return sal_False; } |