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/QmlFileSystem.cs |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/QtVsTools.Package/QML/Debugging/QmlFileSystem.cs b/QtVsTools.Package/QML/Debugging/QmlFileSystem.cs
index 4b33faf..20af63b 100644
--- a/QtVsTools.Package/QML/Debugging/QmlFileSystem.cs
+++ b/QtVsTools.Package/QML/Debugging/QmlFileSystem.cs
@@ -1,6 +1,6 @@
 /****************************************************************************
 **
-** Copyright (C) 2018 The Qt Company Ltd.
+** Copyright (C) 2022 The Qt Company Ltd.
 ** Contact: https://www.qt.io/licensing/
 **
 ** This file is part of the Qt VS Tools.
@@ -36,6 +36,8 @@
 
 namespace QtVsTools.Qml.Debug
 {
+    using QtVsTools.Core;
+
     struct QmlFile
     {
         public string QrcPath;
@@ -92,9 +94,8 @@
                 using (var reader = XmlReader.Create(new StringReader(xmlText), settings)) {
                     rccXml = XDocument.Load(reader);
                 }
-            } catch (Exception e) {
-                System.Diagnostics.Debug.WriteLine(
-                    e.Message + "\r\n\r\nStacktrace:\r\n" + e.StackTrace);
+            } catch (Exception exception) {
+                exception.Log();
                 return;
             }
 
@@ -156,8 +157,7 @@
 
             qrcPath = string.Format("qrc:///{0}", qrcPath);
 
-            QmlFile file;
-            if (!files.TryGetValue(qrcPath, out file))
+            if (!files.TryGetValue(qrcPath, out QmlFile file))
                 return default(QmlFile);
 
             return file;
@@ -190,8 +190,7 @@
                 return default(QmlFile);
             }
 
-            QmlFile file;
-            if (files.TryGetValue(fullPath, out file))
+            if (files.TryGetValue(fullPath, out QmlFile file))
                 return file;
 
             return new QmlFile

--
Gitblit v1.9.1