diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-03-05 15:47:02 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-03-05 15:47:02 +0000 |
commit | 8e59fa20db4ff9a30b8f75ac64db1c8bab3a3907 (patch) | |
tree | bbfa1b1dc454a74bbe0246c0f470fb8538ddc856 /xmloff | |
parent | 1f8542b2d809f67086e6d36c1ef3a9d7b83e26ef (diff) |
INTEGRATION: CWS rptchart01_DEV300 (1.9.114); FILE MERGED
2008/01/24 13:26:34 oj 1.9.114.1: change PTR_CAST calls
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/style/XMLFontStylesContext.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/xmloff/source/style/XMLFontStylesContext.cxx b/xmloff/source/style/XMLFontStylesContext.cxx index 6fa50a7362ee..b2c2a0474a11 100644 --- a/xmloff/source/style/XMLFontStylesContext.cxx +++ b/xmloff/source/style/XMLFontStylesContext.cxx @@ -4,9 +4,9 @@ * * $RCSfile: XMLFontStylesContext.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: hr $ $Date: 2007-06-27 15:32:35 $ + * last change: $Author: kz $ $Date: 2008-03-05 16:47:02 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -294,9 +294,8 @@ sal_Bool XMLFontStylesContext::FillProperties( const OUString& rName, sal_Int32 nPitchIdx, sal_Int32 nCharsetIdx ) const { - const XMLFontStyleContext_Impl *pFontStyle = - PTR_CAST( XMLFontStyleContext_Impl, - FindStyleChildContext( XML_STYLE_FAMILY_FONT, rName, sal_True ) ); + const SvXMLStyleContext* pStyle = FindStyleChildContext( XML_STYLE_FAMILY_FONT, rName, sal_True ); + const XMLFontStyleContext_Impl *pFontStyle = PTR_CAST( XMLFontStyleContext_Impl,pStyle);// use temp var, PTR_CAST is a bad macro, FindStyleChildContext will be called twice if( pFontStyle ) pFontStyle->FillProperties( rProps, nFamilyNameIdx, nStyleNameIdx, nFamilyIdx, nPitchIdx, nCharsetIdx ); |