summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/opengl/win/WinDeviceInfo.cxx3
-rw-r--r--vcl/win/gdi/gdiimpl.cxx3
2 files changed, 2 insertions, 4 deletions
diff --git a/vcl/opengl/win/WinDeviceInfo.cxx b/vcl/opengl/win/WinDeviceInfo.cxx
index fcf3347a1e7a..19b5af00bf9c 100644
--- a/vcl/opengl/win/WinDeviceInfo.cxx
+++ b/vcl/opengl/win/WinDeviceInfo.cxx
@@ -409,8 +409,7 @@ bool WinOpenGLDeviceInfo::FindBlocklistedDeviceInList(std::vector<wgl::DriverInf
wgl::OperatingSystem eOS = WindowsVersionToOperatingSystem(nWindowsVersion);
bool match = false;
- uint32_t i = 0;
- for (; i < aDeviceInfos.size(); i++)
+ for (std::vector<wgl::DriverInfo>::size_type i = 0; i < aDeviceInfos.size(); i++)
{
if (aDeviceInfos[i].meOperatingSystem != wgl::DRIVER_OS_ALL &&
aDeviceInfos[i].meOperatingSystem != eOS)
diff --git a/vcl/win/gdi/gdiimpl.cxx b/vcl/win/gdi/gdiimpl.cxx
index b51c2f700a7d..c2278538f582 100644
--- a/vcl/win/gdi/gdiimpl.cxx
+++ b/vcl/win/gdi/gdiimpl.cxx
@@ -73,7 +73,6 @@ void ImplRenderPath( HDC hdc, sal_uLong nPoints, const SalPoint* pPtAry, const P
{
if( nPoints )
{
- sal_uInt16 i;
// TODO: profile whether the following options are faster:
// a) look ahead and draw consecutive bezier or line segments by PolyBezierTo/PolyLineTo resp.
// b) convert our flag array to window's and use PolyDraw
@@ -81,7 +80,7 @@ void ImplRenderPath( HDC hdc, sal_uLong nPoints, const SalPoint* pPtAry, const P
MoveToEx( hdc, pPtAry->mnX, pPtAry->mnY, nullptr );
++pPtAry; ++pFlgAry;
- for( i=1; i<nPoints; ++i, ++pPtAry, ++pFlgAry )
+ for( sal_uLong i=1; i<nPoints; ++i, ++pPtAry, ++pFlgAry )
{
if( *pFlgAry != PolyFlags::Control )
{