diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-03-28 22:52:41 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-03-29 01:43:56 -0400 |
commit | 2dad7d64a9fc56241254bca2b09820b80ebcd8ba (patch) | |
tree | 0b418d679dfdfe0b9cc50b7b235e7900c120f570 /editeng | |
parent | dbf238ba0a76c64643a28fc3fd9d0d3ede848dd7 (diff) |
remove inline & const method.
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editdoc.hxx | 9 | ||||
-rw-r--r-- | editeng/source/editeng/editdoc2.cxx | 12 |
2 files changed, 14 insertions, 7 deletions
diff --git a/editeng/source/editeng/editdoc.hxx b/editeng/source/editeng/editdoc.hxx index 2a78af7bb10b..7b7a9e555fda 100644 --- a/editeng/source/editeng/editdoc.hxx +++ b/editeng/source/editeng/editdoc.hxx @@ -637,13 +637,10 @@ public: void Reset(); long GetYOffset(const ParaPortion* pPPortion) const; - sal_uInt16 FindParagraph( long nYOffset ); + sal_uInt16 FindParagraph(long nYOffset) const; - inline const ParaPortion* SaveGetObject(size_t nPos) const - { return nPos < maPortions.size() ? &maPortions[nPos] : NULL; } - - inline ParaPortion* SaveGetObject(size_t nPos) - { return nPos < maPortions.size() ? &maPortions[nPos] : NULL; } + const ParaPortion* SaveGetObject(size_t nPos) const; + ParaPortion* SaveGetObject(size_t nPos); sal_uInt16 GetPos(const ParaPortion* p) const; ParaPortion* operator[](size_t nPos); diff --git a/editeng/source/editeng/editdoc2.cxx b/editeng/source/editeng/editdoc2.cxx index 52a815ad7264..cb3cafddf986 100644 --- a/editeng/source/editeng/editdoc2.cxx +++ b/editeng/source/editeng/editdoc2.cxx @@ -436,7 +436,7 @@ long ParaPortionList::GetYOffset(const ParaPortion* pPPortion) const return nHeight; } -sal_uInt16 ParaPortionList::FindParagraph( long nYOffset ) +sal_uInt16 ParaPortionList::FindParagraph(long nYOffset) const { long nY = 0; for (size_t i = 0, n = maPortions.size(); i < n; ++i) @@ -448,6 +448,16 @@ sal_uInt16 ParaPortionList::FindParagraph( long nYOffset ) return EE_PARA_NOT_FOUND; } +const ParaPortion* ParaPortionList::SaveGetObject(size_t nPos) const +{ + return nPos < maPortions.size() ? &maPortions[nPos] : NULL; +} + +ParaPortion* ParaPortionList::SaveGetObject(size_t nPos) +{ + return nPos < maPortions.size() ? &maPortions[nPos] : NULL; +} + #if OSL_DEBUG_LEVEL > 2 void ParaPortionList::DbgCheck( EditDoc& rDoc) { |