diff options
author | Joseph Powers <jpowers27@cox.net> | 2011-07-07 22:43:03 -0700 |
---|---|---|
committer | Joseph Powers <jpowers27@cox.net> | 2011-07-07 22:43:03 -0700 |
commit | 2b9617fcd0b230c95badd3fd082a2864c8266f61 (patch) | |
tree | 7afaa8f95a8ed9db33a93a4152c33d651c58f295 | |
parent | Enhancing svg export (diff) | |
download | core-2b9617fcd0b230c95badd3fd082a2864c8266f61.tar.gz core-2b9617fcd0b230c95badd3fd082a2864c8266f61.zip |
Fix some ambiguous method errors.
My compiler couldn't determine which version of valueOf() to use.
GCC 4.0 on Mac OS 10.6.8
-rw-r--r-- | filter/source/svg/svgexport.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx index 1d43cc23ae19..af57d3bdf3dd 100644 --- a/filter/source/svg/svgexport.cxx +++ b/filter/source/svg/svgexport.cxx @@ -795,8 +795,8 @@ sal_Bool SVGFilter::implExportDocument() mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "clipPathUnits", B2UCONST( "userSpaceOnUse" ) ); SvXMLElementExport aClipPathElem( *mpSVGExport, XML_NAMESPACE_NONE, "clipPath", sal_True, sal_True ); { - mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "x", OUString::valueOf( 0 ) ); - mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "y", OUString::valueOf( 0 ) ); + mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "x", OUString::valueOf( sal_Int32(0) ) ); + mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "y", OUString::valueOf( sal_Int32(0) ) ); mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "width", OUString::valueOf( nDocWidth ) ); mpSVGExport->AddAttribute( XML_NAMESPACE_NONE, "height", OUString::valueOf( nDocHeight ) ); SvXMLElementExport aRectElem( *mpSVGExport, XML_NAMESPACE_NONE, "rect", sal_True, sal_True ); @@ -1897,7 +1897,7 @@ IMPL_LINK( SVGFilter, CalcFieldHdl, EditFieldInfo*, pInfo ) case SVX_ARABIC: ; // in case the numbering type is not handled we fall back on arabic numbering default: - aRepresentation = OUString::valueOf( nPageNumber ); + aRepresentation = OUString::valueOf( sal_Int32(nPageNumber) ); break; } } |