vcl/source/window/cursor.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
New commits: commit b5d2044dcd161d1a7932266ec1b910170630dd2d Author: Caolán McNamara <[email protected]> AuthorDate: Sat Feb 14 21:53:17 2026 +0000 Commit: Caolán McNamara <[email protected]> CommitDate: Sun Feb 15 10:32:16 2026 +0100 init ImplCursorData in ctor Change-Id: I2a004c1183164c5fe51a19727cdbf8e6b24cba89 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199392 Tested-by: Jenkins Reviewed-by: Caolán McNamara <[email protected]> diff --git a/vcl/source/window/cursor.cxx b/vcl/source/window/cursor.cxx index 3ef540da2486..8dc0e5a06056 100644 --- a/vcl/source/window/cursor.cxx +++ b/vcl/source/window/cursor.cxx @@ -38,9 +38,9 @@ struct ImplCursorData Point maPixRotOff; // Pixel-Offset-Position Size maPixSize; // Pixel-Size Degree10 mnOrientation; // Pixel-Orientation - CursorDirection mnDirection; // indicates writing direction - sal_uInt16 mnStyle; // Cursor-Style - bool mbCurVisible; // Is cursor currently visible + CursorDirection mnDirection = CursorDirection::NONE; // indicates writing direction + sal_uInt16 mnStyle = 0; // Cursor-Style + bool mbCurVisible = false; // Is cursor currently visible VclPtr<vcl::Window> mpWindow; // assigned window }; @@ -178,8 +178,6 @@ void vcl::Cursor::ImplDraw() void vcl::Cursor::DrawToDevice(OutputDevice& rRenderContext) { ImplCursorData aData; - aData.mnStyle = 0; - aData.mbCurVisible = false; // calculate output area if (ImplPrepForDraw(&rRenderContext, aData)) { @@ -221,7 +219,6 @@ void vcl::Cursor::ImplDoShow( bool bDrawDirect, bool bRestore ) if ( !mpData ) { mpData.reset( new ImplCursorData ); - mpData->mbCurVisible = false; mpData->maTimer.SetInvokeHandler( LINK( this, Cursor, ImplTimerHdl ) ); }
