cid#1660214 Overflowed constant
make types consistent here Change-Id: I9e0b44d53d0affa2220f956dcaef8a613ff51e7a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189411 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
@@ -4390,7 +4390,7 @@ struct EscherShapeListEntry
|
||||
{}
|
||||
};
|
||||
|
||||
sal_uInt32 EscherConnectorListEntry::GetClosestPoint( const tools::Polygon& rPoly, const awt::Point& rPoint )
|
||||
sal_Int32 EscherConnectorListEntry::GetClosestPoint( const tools::Polygon& rPoly, const awt::Point& rPoint )
|
||||
{
|
||||
sal_uInt16 nCount = rPoly.GetSize();
|
||||
sal_uInt16 nClosest = nCount;
|
||||
@@ -4415,9 +4415,9 @@ sal_uInt32 EscherConnectorListEntry::GetClosestPoint( const tools::Polygon& rPol
|
||||
// 2 ->Bottom 4 ->Bottom
|
||||
// 3 ->Right 6 ->Right
|
||||
|
||||
sal_uInt32 EscherConnectorListEntry::GetConnectorRule( bool bFirst )
|
||||
sal_Int32 EscherConnectorListEntry::GetConnectorRule( bool bFirst )
|
||||
{
|
||||
sal_uInt32 nRule = 0;
|
||||
sal_Int32 nRule = 0;
|
||||
|
||||
uno::Any aAny;
|
||||
awt::Point aRefPoint( bFirst ? maPointA : maPointB );
|
||||
|
||||
@@ -460,7 +460,7 @@ struct MSFILTER_DLLPUBLIC EscherConnectorListEntry
|
||||
css::awt::Point maPointB;
|
||||
css::uno::Reference< css::drawing::XShape > mXConnectToB;
|
||||
|
||||
sal_uInt32 GetConnectorRule( bool bFirst );
|
||||
sal_Int32 GetConnectorRule( bool bFirst );
|
||||
|
||||
EscherConnectorListEntry( css::uno::Reference< css::drawing::XShape > xC,
|
||||
const css::awt::Point& rPA,
|
||||
@@ -473,7 +473,7 @@ struct MSFILTER_DLLPUBLIC EscherConnectorListEntry
|
||||
maPointB ( rPB ),
|
||||
mXConnectToB(std::move( xSB )) {}
|
||||
|
||||
static sal_uInt32 GetClosestPoint( const tools::Polygon& rPoly, const css::awt::Point& rP );
|
||||
static sal_Int32 GetClosestPoint(const tools::Polygon& rPoly, const css::awt::Point& rP);
|
||||
};
|
||||
|
||||
struct MSFILTER_DLLPUBLIC EscherExContainer
|
||||
|
||||
Reference in New Issue
Block a user