summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-02-18 20:41:30 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-02-19 13:38:46 +0000
commita32050b3187ca4d0539dda860a7016905f9b7a34 (patch)
tree87e69b33ccbbaa727e42d33967137eee31f42a0f
parentaf9709c3cba8c386a30553c43a620320b15c65f4 (diff)
give copy ctor a conventional signature
-rw-r--r--sd/source/filter/eppt/pptx-text.cxx4
-rw-r--r--sd/source/filter/eppt/text.hxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/filter/eppt/pptx-text.cxx b/sd/source/filter/eppt/pptx-text.cxx
index db96148eb327..e5b87ed5eff1 100644
--- a/sd/source/filter/eppt/pptx-text.cxx
+++ b/sd/source/filter/eppt/pptx-text.cxx
@@ -1285,9 +1285,9 @@ TextObj::TextObj( ::com::sun::star::uno::Reference< ::com::sun::star::text::XSim
ImplCalculateTextPositions();
}
-TextObj::TextObj( TextObj& rTextObj )
+TextObj::TextObj( const TextObj& rTextObj )
{
- mpImplTextObj = rTextObj.mpImplTextObj;
+ mpImplTextObj = const_cast<TextObj&>(rTextObj).mpImplTextObj;
mpImplTextObj->mnRefCount++;
}
diff --git a/sd/source/filter/eppt/text.hxx b/sd/source/filter/eppt/text.hxx
index 3d0d0f2184f0..58ddca9eeaee 100644
--- a/sd/source/filter/eppt/text.hxx
+++ b/sd/source/filter/eppt/text.hxx
@@ -249,7 +249,7 @@ class TextObj
public :
TextObj( ::com::sun::star::uno::Reference< ::com::sun::star::text::XSimpleText > &
rXText, int nInstance, FontCollection& rFontCollection, PPTExBulletProvider& rBuProv );
- TextObj( TextObj& rTextObj );
+ TextObj( const TextObj& rTextObj );
~TextObj();
void Write( SvStream* pStrm );