summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-28 05:06:53 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-28 22:14:21 +0100
commit95f2ba75cb07462e4a53f39795a72cfdaaf36452 (patch)
tree04197be3cdecabc7163cf51af518b9f0a7f4b76c /sw/inc
parent76b2fa2f85f25a77bbcfbdd3fd3e3caea897fd80 (diff)
some more constness
Change-Id: I3be2699d04359ba9e7d9184c2e69778f0a70d072
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/unotbl.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/inc/unotbl.hxx b/sw/inc/unotbl.hxx
index 5cc66b41252c..bb2c593a272a 100644
--- a/sw/inc/unotbl.hxx
+++ b/sw/inc/unotbl.hxx
@@ -167,7 +167,8 @@ class SwXTextTableRow : public cppu::WeakImplHelper2
const SfxItemPropertySet* m_pPropSet;
SwTableLine* pLine;
- SwFrmFmt* GetFrmFmt() const { return const_cast<SwFrmFmt*>(static_cast<const SwFrmFmt*>(GetRegisteredIn())); }
+ SwFrmFmt* GetFrmFmt() { return static_cast<SwFrmFmt*>(GetRegisteredIn()); }
+ const SwFrmFmt* GetFrmFmt() const { return const_cast<SwXTextTableRow*>(this)->GetFrmFmt(); }
protected:
virtual ~SwXTextTableRow();
//SwClient