diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 19:57:12 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 20:24:40 +0100 |
commit | c35616dd73c8b05e422f3b561f21e21f5489d574 (patch) | |
tree | 975aab3fbaecae0803be0783b25a0f89684dcc95 /sfx2/source/doc/objxtor.cxx | |
parent | f0dc6cda7580a2e070d3ad550fb4cd8577179203 (diff) |
bool improvements
Change-Id: I4a09bffccc0049d81ea3113e79184f64b026a4ba
Diffstat (limited to 'sfx2/source/doc/objxtor.cxx')
-rw-r--r-- | sfx2/source/doc/objxtor.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx index a3870fe318b8..c34781a2a0f8 100644 --- a/sfx2/source/doc/objxtor.cxx +++ b/sfx2/source/doc/objxtor.cxx @@ -644,7 +644,7 @@ bool SfxObjectShell::PrepareClose } if ( !pPoolItem || pPoolItem->ISA(SfxVoidItem) || ( pPoolItem->ISA(SfxBoolItem) && !( (const SfxBoolItem*) pPoolItem )->GetValue() ) ) - return sal_False; + return false; } else if ( RET_CANCEL == nRet ) // Cancelled @@ -1076,8 +1076,8 @@ Reference<lang::XComponent> SfxObjectShell::CreateAndLoadComponent( const SfxIte { uno::Sequence < beans::PropertyValue > aProps; TransformItems( SID_OPENDOC, rSet, aProps ); - SFX_ITEMSET_ARG(&rSet, pFileNameItem, SfxStringItem, SID_FILE_NAME, sal_False); - SFX_ITEMSET_ARG(&rSet, pTargetItem, SfxStringItem, SID_TARGETNAME, sal_False); + SFX_ITEMSET_ARG(&rSet, pFileNameItem, SfxStringItem, SID_FILE_NAME, false); + SFX_ITEMSET_ARG(&rSet, pTargetItem, SfxStringItem, SID_TARGETNAME, false); OUString aURL; OUString aTarget("_blank"); if ( pFileNameItem ) @@ -1142,7 +1142,7 @@ void SfxObjectShell::SetInitialized_Impl( const bool i_fromInitNew ) bool SfxObjectShell::IsChangeRecording() const { // currently this function needs to be overwritten by Writer and Calc only - DBG_ASSERT( 0, "function not implemented" ); + DBG_ASSERT( false, "function not implemented" ); return false; } @@ -1150,7 +1150,7 @@ bool SfxObjectShell::IsChangeRecording() const bool SfxObjectShell::HasChangeRecordProtection() const { // currently this function needs to be overwritten by Writer and Calc only - DBG_ASSERT( 0, "function not implemented" ); + DBG_ASSERT( false, "function not implemented" ); return false; } @@ -1158,14 +1158,14 @@ bool SfxObjectShell::HasChangeRecordProtection() const void SfxObjectShell::SetChangeRecording( bool /*bActivate*/ ) { // currently this function needs to be overwritten by Writer and Calc only - DBG_ASSERT( 0, "function not implemented" ); + DBG_ASSERT( false, "function not implemented" ); } bool SfxObjectShell::SetProtectionPassword( const OUString & /*rPassword*/ ) { // currently this function needs to be overwritten by Writer and Calc only - DBG_ASSERT( 0, "function not implemented" ); + DBG_ASSERT( false, "function not implemented" ); return false; } @@ -1173,7 +1173,7 @@ bool SfxObjectShell::SetProtectionPassword( const OUString & /*rPassword*/ ) bool SfxObjectShell::GetProtectionHash( /*out*/ ::com::sun::star::uno::Sequence< sal_Int8 > & /*rPasswordHash*/ ) { // currently this function needs to be overwritten by Writer and Calc only - DBG_ASSERT( 0, "function not implemented" ); + DBG_ASSERT( false, "function not implemented" ); return false; } |