diff options
author | Arnaud Versini <arnaud.versini@gmail.com> | 2011-08-23 16:25:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-23 16:25:52 +0100 |
commit | b9ee88198634b43639fc00547751f3fbfbdebfae (patch) | |
tree | 2db4e87df09806b3053455318c1ac35004ec895a /sw/inc | |
parent | add a regression test to confirm SwDocStat works the way I think (diff) | |
download | core-b9ee88198634b43639fc00547751f3fbfbdebfae.tar.gz core-b9ee88198634b43639fc00547751f3fbfbdebfae.zip |
Remove unecessary parameter to IDocumentStatistics::UpdateDocStat
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/IDocumentStatistics.hxx | 4 | ||||
-rw-r--r-- | sw/inc/doc.hxx | 3 | ||||
-rw-r--r-- | sw/inc/editsh.hxx | 3 |
3 files changed, 7 insertions, 3 deletions
diff --git a/sw/inc/IDocumentStatistics.hxx b/sw/inc/IDocumentStatistics.hxx index 152d382f998e..8bdebbab24e4 100644 --- a/sw/inc/IDocumentStatistics.hxx +++ b/sw/inc/IDocumentStatistics.hxx @@ -46,9 +46,11 @@ */ virtual const SwDocStat &GetDocStat() const = 0; + virtual const SwDocStat &GetUpdatedDocStat() = 0; + virtual void SetDocStat(const SwDocStat& rStat) = 0; - virtual void UpdateDocStat(SwDocStat& rStat) = 0; + virtual void UpdateDocStat() = 0; protected: virtual ~IDocumentStatistics() {}; diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx index 9e8f3a90a0a3..ead098dd8c0c 100644 --- a/sw/inc/doc.hxx +++ b/sw/inc/doc.hxx @@ -899,8 +899,9 @@ public: */ virtual void DocInfoChgd(); virtual const SwDocStat &GetDocStat() const; + virtual const SwDocStat &GetUpdatedDocStat(); virtual void SetDocStat(const SwDocStat& rStat); - virtual void UpdateDocStat(SwDocStat& rStat); + virtual void UpdateDocStat(); /** IDocumentState */ diff --git a/sw/inc/editsh.hxx b/sw/inc/editsh.hxx index 14ea40e50e91..ab77265a3e83 100644 --- a/sw/inc/editsh.hxx +++ b/sw/inc/editsh.hxx @@ -374,7 +374,8 @@ public: void SetUndoNoResetModified(); // Document - Statistics - void UpdateDocStat( SwDocStat& rStat ); + void UpdateDocStat(); + const SwDocStat &GetUpdatedDocStat(); void Insert(const SwTOXMark& rMark); |