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:
Caolán McNamara
2025-08-12 15:38:21 +02:00
parent 44ffdd9180
commit e3a9f2bb2f
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -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 );
+2 -2
View File
@@ -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