summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/txatbase.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/inc/txatbase.hxx b/sw/inc/txatbase.hxx
index 0e2aebdb846f..90509a929309 100644
--- a/sw/inc/txatbase.hxx
+++ b/sw/inc/txatbase.hxx
@@ -86,7 +86,7 @@ public:
virtual void SetEnd(sal_Int32);
inline const sal_Int32* End() const;
/// end (if available), else start
- inline const sal_Int32* GetAnyEnd() const;
+ inline sal_Int32 GetAnyEnd() const;
inline void SetDontExpand( bool bDontExpand );
bool DontExpand() const { return m_bDontExpand; }
@@ -150,10 +150,10 @@ inline const sal_Int32* SwTextAttr::End() const
return GetEnd();
}
-inline const sal_Int32* SwTextAttr::GetAnyEnd() const
+inline sal_Int32 SwTextAttr::GetAnyEnd() const
{
const sal_Int32* pEnd = End();
- return pEnd ? pEnd : &m_nStart;
+ return pEnd ? *pEnd : m_nStart;
}
inline const SfxPoolItem& SwTextAttr::GetAttr() const