summaryrefslogtreecommitdiff
path: root/editeng/source/editeng/editdoc.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-03-28 15:49:47 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-03-28 22:50:13 -0400
commitcc7bacc506d3613ad45b0443df1151eb92b1f9b4 (patch)
treed442b8a226b12dfa7c86bfc7935ef7c2e38a320f /editeng/source/editeng/editdoc.hxx
parent86647a187371f03a05a329f24366b0ac2e6c7fbf (diff)
template over 3 different types of casts all in one line.
Diffstat (limited to 'editeng/source/editeng/editdoc.hxx')
-rw-r--r--editeng/source/editeng/editdoc.hxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/editeng/source/editeng/editdoc.hxx b/editeng/source/editeng/editdoc.hxx
index 7f760f396082..9474ee92a002 100644
--- a/editeng/source/editeng/editdoc.hxx
+++ b/editeng/source/editeng/editdoc.hxx
@@ -298,8 +298,7 @@ SV_DECL_PTRARR( DummyContentList, ContentNodePtr, 0 )
class ContentList : public DummyContentList
{
- sal_uInt16 nLastCache;
-
+ mutable sal_uInt16 nLastCache;
public:
ContentList();
sal_uInt16 GetPos(ContentNode* p) const;
@@ -631,7 +630,7 @@ SV_DECL_PTRARR( DummyParaPortionList, ParaPortionPtr, 0 )
// -------------------------------------------------------------------------
class ParaPortionList : public DummyParaPortionList
{
- sal_uInt16 nLastCache;
+ mutable sal_uInt16 nLastCache;
public:
ParaPortionList();
~ParaPortionList();
@@ -643,7 +642,7 @@ public:
inline ParaPortion* SaveGetObject( sal_uInt16 nPos ) const
{ return ( nPos < Count() ) ? GetObject( nPos ) : 0; }
- sal_uInt16 GetPos( const ParaPortionPtr &rPtr ) const;
+ sal_uInt16 GetPos(ParaPortion* p) const;
#if OSL_DEBUG_LEVEL > 2
// temporary:
void DbgCheck( EditDoc& rDoc );