diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-07-13 16:52:51 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-07-13 18:27:14 +0200 |
commit | 7e9e8834b52b684262262b02a86d6a4d5ce07b9c (patch) | |
tree | e3405e9378e1023b2d0b052ff57be99490a6aac5 /sw | |
parent | f4dcec24a829cf4b6899ee2703ac4181cebb762f (diff) |
add const
Change-Id: I5c7c88e0359dae9691f4cb70e2ad9a139618e701
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/wrtww8.hxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8atr.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/wrtww8.hxx b/sw/source/filter/ww8/wrtww8.hxx index 830aebeb254e..28cda40ba639 100644 --- a/sw/source/filter/ww8/wrtww8.hxx +++ b/sw/source/filter/ww8/wrtww8.hxx @@ -1523,7 +1523,7 @@ public: /// Get id of the style (rFmt). sal_uInt16 GetSlot( const SwFmt& rFmt ) const; - SwFmt* GetSwFmt() { return (*pFmtA); } + const SwFmt* GetSwFmt() const { return (*pFmtA); } }; sal_Int16 GetWordFirstLineOffset(const SwNumFmt &rFmt); diff --git a/sw/source/filter/ww8/ww8atr.cxx b/sw/source/filter/ww8/ww8atr.cxx index f00e78470cf6..900900e65ccd 100644 --- a/sw/source/filter/ww8/ww8atr.cxx +++ b/sw/source/filter/ww8/ww8atr.cxx @@ -3650,7 +3650,7 @@ void WW8AttributeOutput::SectionBreak( sal_uInt8 nC, const WW8_SepInfo* /*pSecti sal_uInt32 AttributeOutputBase::GridCharacterPitch( const SwTextGridItem& rGrid ) const { MSWordStyles * pStyles = GetExport().pStyles; - SwFmt * pSwFmt = pStyles->GetSwFmt(); + const SwFmt * pSwFmt = pStyles->GetSwFmt(); sal_uInt32 nPageCharSize = 0; |