From ca47896204482bf4a6979e3838bf7f09f61cebeb Mon Sep 17 00:00:00 2001 From: giy <giy@omp-system.ru> Date: Fri, 02 Sep 2022 14:16:56 +0300 Subject: [PATCH] Обновление до версии 2.9.0 --- QtVsTools.Package/QML/Debugging/AD7/QmlDebugAD7Events.cs | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/QtVsTools.Package/QML/Debugging/AD7/QmlDebugAD7Events.cs b/QtVsTools.Package/QML/Debugging/AD7/QmlDebugAD7Events.cs index 9c75bc5..6ea40cf 100644 --- a/QtVsTools.Package/QML/Debugging/AD7/QmlDebugAD7Events.cs +++ b/QtVsTools.Package/QML/Debugging/AD7/QmlDebugAD7Events.cs @@ -38,8 +38,8 @@ // such as stopping at a breakpoint, and non-critical information, such as a // debugging message." { - public Guid InterfaceId { get; protected set; } - public uint Attributes { get; protected set; } + private Guid InterfaceId { get; } + private uint Attributes { get; } protected const uint ASYNCHRONOUS = (uint)enum_EVENTATTRIBUTES.EVENT_ASYNCHRONOUS; protected const uint STOPPING = (uint)enum_EVENTATTRIBUTES.EVENT_ASYNC_STOP; @@ -48,10 +48,10 @@ (uint)enum_EVENTATTRIBUTES.EVENT_STOPPING | (uint)enum_EVENTATTRIBUTES.EVENT_SYNCHRONOUS; - protected QmlEngine Engine { get; set; } - protected IDebugProgram2 Program { get; set; } - protected IDebugThread2 Thread { get; set; } - protected IDebugEventCallback2 Callback { get; set; } + protected QmlEngine Engine { get; } + private IDebugProgram2 Program { get; } + private IDebugThread2 Thread { get; } + private IDebugEventCallback2 Callback { get; } protected DebugEvent( QmlEngine engine, @@ -114,8 +114,8 @@ class ProgramDestroyEvent : DebugEvent, IDebugProgramDestroyEvent2 { - uint exitCode; - public new Program Program { get; private set; } + readonly uint exitCode; + public Program Program { get; } public ProgramDestroyEvent(Program program, uint exitCode) : base(program.Engine, typeof(IDebugProgramDestroyEvent2).GUID, @@ -142,7 +142,7 @@ class ThreadDestroyEvent : DebugEvent, IDebugThreadDestroyEvent2 { - uint exitCode; + readonly uint exitCode; public ThreadDestroyEvent(Program program, uint exitCode) : base(program.Engine, typeof(IDebugThreadDestroyEvent2).GUID, @@ -176,7 +176,7 @@ class BreakpointBoundEvent : DebugEvent, IDebugBreakpointBoundEvent2 { - public Breakpoint Breakpoint { get; private set; } + private Breakpoint Breakpoint { get; } public BreakpointBoundEvent(Breakpoint breakpoint) : base(breakpoint.Program.Engine, typeof(IDebugBreakpointBoundEvent2).GUID, ASYNCHRONOUS, breakpoint.Program, breakpoint.Program) @@ -201,7 +201,7 @@ class BreakpointEvent : DebugEvent, IDebugBreakpointEvent2 { - IEnumDebugBoundBreakpoints2 boundBreakpoints; + readonly IEnumDebugBoundBreakpoints2 boundBreakpoints; public BreakpointEvent(Program program, IEnumDebugBoundBreakpoints2 boundBreakpoints) @@ -228,8 +228,8 @@ class ExpressionEvaluationCompleteEvent : DebugEvent, IDebugExpressionEvaluationCompleteEvent2 { - public Expression Expression { get; private set; } - public Property Property { get; private set; } + private Expression Expression { get; } + private Property Property { get; } public ExpressionEvaluationCompleteEvent( IDebugEventCallback2 callback, @@ -257,7 +257,7 @@ class OutputStringEvent : DebugEvent, IDebugOutputStringEvent2 { - string outputString; + readonly string outputString; public OutputStringEvent(QmlEngine engine, string outputString) : base(engine, typeof(IDebugOutputStringEvent2).GUID, ASYNCHRONOUS) -- Gitblit v1.9.1