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 /include/sfx2 | |
parent | cbc1176c14ae36293a9cb2acb895dc99111145d5 (diff) |
coverity#735333 flush out pointless calls to IsRemote and IsOpen
etc.
Change-Id: I588d4486071b1e31897d4e6468a2c634d6856832
Diffstat (limited to 'include/sfx2')
-rw-r--r-- | include/sfx2/docfile.hxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/sfx2/docfile.hxx b/include/sfx2/docfile.hxx index 7d8f1ba4186f..ff3a91938bf9 100644 --- a/include/sfx2/docfile.hxx +++ b/include/sfx2/docfile.hxx @@ -127,13 +127,13 @@ public: const INetURLObject& GetURLObject() const; void CheckFileDate( const css::util::DateTime& aInitDate ); - bool DocNeedsFileDateCheck(); + SAL_WARN_UNUSED_RESULT bool DocNeedsFileDateCheck() const; css::util::DateTime GetInitFileDate( bool bIgnoreOldValue ); css::uno::Reference< css::ucb::XContent > GetContent() const; const OUString& GetPhysicalName() const; - bool IsRemote() const; - bool IsOpen() const; // { return aStorage.Is() || pInStream; } + SAL_WARN_UNUSED_RESULT bool IsRemote() const; + SAL_WARN_UNUSED_RESULT bool IsOpen() const; // { return aStorage.Is() || pInStream; } void Download( const Link& aLink = Link()); void SetDoneLink( const Link& rLink ); @@ -167,21 +167,21 @@ public: css::uno::Reference< css::embed::XStorage > GetStorage( bool bCreateTempIfNo = true ); css::uno::Reference< css::embed::XStorage > GetOutputStorage(); void ResetError(); - bool UsesCache() const; + SAL_WARN_UNUSED_RESULT bool UsesCache() const; void SetUsesCache( bool ); - bool IsExpired() const; + SAL_WARN_UNUSED_RESULT bool IsExpired() const; void SetName( const OUString& rName, bool bSetOrigURL = false ); - bool IsAllowedForExternalBrowser() const; - long GetFileVersion() const; + SAL_WARN_UNUSED_RESULT bool IsAllowedForExternalBrowser() const; + SAL_WARN_UNUSED_RESULT long GetFileVersion() const; const css::uno::Sequence < css::util::RevisionTag >& GetVersionList( bool _bNoReload = false ); - bool IsReadOnly(); + SAL_WARN_UNUSED_RESULT bool IsReadOnly() const; // Whether the medium had originally been opened r/o, independent of later // changes via SetOpenMode; used to keep track of the "true" state of the // medium across toggles via SID_EDITDOC (which do change SetOpenMode): - bool IsOriginallyReadOnly() const; + SAL_WARN_UNUSED_RESULT bool IsOriginallyReadOnly() const; css::uno::Reference< css::io::XInputStream > GetInputStream(); |