diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-15 10:18:14 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-15 16:56:57 +0100 |
commit | 6832d9f0f0ba80b95cb3b25e14365dff5803c4b5 (patch) | |
tree | 34d23fb8e6e9ef27921655c150b77d80b4aeece6 /sfx2 | |
parent | cbc1176c14ae36293a9cb2acb895dc99111145d5 (diff) |
coverity#735333 flush out pointless calls to IsRemote and IsOpen
etc.
Change-Id: I588d4486071b1e31897d4e6468a2c634d6856832
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/docfile.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index 54bb317816ba..d1909252fabd 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -380,13 +380,11 @@ void SfxMedium::CheckFileDate( const util::DateTime& aInitDate ) } } - -bool SfxMedium::DocNeedsFileDateCheck() +bool SfxMedium::DocNeedsFileDateCheck() const { return ( !IsReadOnly() && ::utl::LocalFileHelper::IsLocalFile( GetURLObject().GetMainURL( INetURLObject::NO_DECODE ) ) ); } - util::DateTime SfxMedium::GetInitFileDate( bool bIgnoreOldValue ) { if ( ( bIgnoreOldValue || !pImp->m_bGotDateTime ) && !pImp->m_aLogicName.isEmpty() ) @@ -3172,8 +3170,7 @@ bool SfxMedium::SaveVersionList_Impl( bool /*bUseXML*/ ) return false; } - -bool SfxMedium::IsReadOnly() +bool SfxMedium::IsReadOnly() const { // a) ReadOnly filter can't produce read/write contents! bool bReadOnly = ( |