diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/appopen.cxx | 7 | ||||
-rw-r--r-- | sfx2/source/view/frame.cxx | 6 |
2 files changed, 4 insertions, 9 deletions
diff --git a/sfx2/source/appl/appopen.cxx b/sfx2/source/appl/appopen.cxx index 632a2f985268..1c16308dbd4e 100644 --- a/sfx2/source/appl/appopen.cxx +++ b/sfx2/source/appl/appopen.cxx @@ -555,11 +555,8 @@ bool lcl_isFilterNativelySupported(const SfxFilter& rFilter) return true; const OUString& aName = rFilter.GetFilterName(); - if (aName.startsWith("MS Excel")) - // We can handle all Excel variants natively. - return true; - - return false; + // We can handle all Excel variants natively. + return aName.startsWith("MS Excel"); } } diff --git a/sfx2/source/view/frame.cxx b/sfx2/source/view/frame.cxx index a14885f40752..6fd9832b2b4d 100644 --- a/sfx2/source/view/frame.cxx +++ b/sfx2/source/view/frame.cxx @@ -163,10 +163,8 @@ void SfxFrame::DoClose_Impl() bool SfxFrame::DocIsModified_Impl() { - if ( pImpl->pCurrentViewFrame && pImpl->pCurrentViewFrame->GetObjectShell() && - pImpl->pCurrentViewFrame->GetObjectShell()->IsModified() ) - return true; - return false; + return pImpl->pCurrentViewFrame && pImpl->pCurrentViewFrame->GetObjectShell() && + pImpl->pCurrentViewFrame->GetObjectShell()->IsModified(); } bool SfxFrame::PrepareClose_Impl( bool bUI ) |