summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-05-25 14:52:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-05-30 18:22:42 +0200
commit2eebd9119bebb94f9c9f2bf718f5321511276a84 (patch)
tree3f06797d0e11663df1654a7460b3f5b14d6196d7 /sw/inc
parent79b233be14e75157aecd97179c568baad0a60016 (diff)
GetAnyEnd does not need to return a pointer
Change-Id: I1350a340eddad180447c46175b6b21ce787802f3 Reviewed-on: https://gerrit.libreoffice.org/72952 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
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