fix some warnings
This commit is contained in:
parent
b2e45e37a6
commit
d652efa0b8
2 changed files with 4 additions and 2 deletions
|
@ -82,7 +82,9 @@ protected:
|
|||
virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const;
|
||||
|
||||
// XPropertyAccess
|
||||
using cppu::OPropertySetHelper::getPropertyValues;
|
||||
virtual com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getPropertyValues( ) throw (com::sun::star::uno::RuntimeException);
|
||||
using cppu::OPropertySetHelper::setPropertyValues;
|
||||
virtual void SAL_CALL setPropertyValues( const com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aProps ) throw (com::sun::star::beans::UnknownPropertyException, com::sun::star::beans::PropertyVetoException, com::sun::star::lang::IllegalArgumentException, com::sun::star::lang::WrappedTargetException, com::sun::star::uno::RuntimeException);
|
||||
|
||||
// XExporter
|
||||
|
|
|
@ -129,7 +129,7 @@ SVGAttributeWriter::~SVGAttributeWriter()
|
|||
|
||||
double SVGAttributeWriter::ImplRound( double fValue, sal_Int32 nDecs )
|
||||
{
|
||||
return( floor( fValue * pow( 10.0, nDecs ) + 0.5 ) / pow( 10.0, nDecs ) );
|
||||
return( floor( fValue * pow( 10.0, (int)nDecs ) + 0.5 ) / pow( 10.0, (int)nDecs ) );
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
@ -870,7 +870,7 @@ void SVGActionWriter::ImplWriteText( const Point& rPos, const String& rText,
|
|||
|
||||
if( !mrExport.IsUseNativeTextDecoration() )
|
||||
{
|
||||
if( rFont.GetStrikeout() || rFont.GetUnderline() )
|
||||
if( rFont.GetStrikeout() != STRIKEOUT_NONE || rFont.GetUnderline() != UNDERLINE_NONE )
|
||||
{
|
||||
Polygon aPoly( 4 );
|
||||
const long nLineHeight = Max( (long) FRound( aMetric.GetLineHeight() * 0.05 ), (long) 1 );
|
||||
|
|
Loading…
Reference in a new issue