From d92edc8d62b5bc1e82764a2abcbac1030ded90e6 Mon Sep 17 00:00:00 2001 From: Giuseppe Lippolis Date: Thu, 6 Oct 2022 14:48:57 +0200 Subject: [PATCH] fix(LogArea): Replace string with nameof --- src/Avalonia.Base/Logging/LogArea.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Avalonia.Base/Logging/LogArea.cs b/src/Avalonia.Base/Logging/LogArea.cs index 50a5ead18b..972a9a1e9d 100644 --- a/src/Avalonia.Base/Logging/LogArea.cs +++ b/src/Avalonia.Base/Logging/LogArea.cs @@ -8,32 +8,32 @@ namespace Avalonia.Logging /// /// The log event comes from the property system. /// - public const string Property = "Property"; + public const string Property = nameof(Property); /// /// The log event comes from the binding system. /// - public const string Binding = "Binding"; + public const string Binding = nameof(Binding); /// /// The log event comes from the animations system. /// - public const string Animations = "Animations"; + public const string Animations = nameof(Animations); /// /// The log event comes from the visual system. /// - public const string Visual = "Visual"; + public const string Visual = nameof(Visual); /// /// The log event comes from the layout system. /// - public const string Layout = "Layout"; + public const string Layout = nameof(Layout); /// /// The log event comes from the control system. /// - public const string Control = "Control"; + public const string Control = nameof(Control); /// /// The log event comes from Win32 Platform.