mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-10-22 03:45:38 +00:00
Code Cleanup
This commit is contained in:
@@ -20,9 +20,6 @@ using System.Windows.Controls;
|
||||
|
||||
namespace QuickLook.Plugin.ArchiveViewer;
|
||||
|
||||
/// <summary>
|
||||
/// Interaction logic for ArchiveFileListView.xaml
|
||||
/// </summary>
|
||||
public partial class ArchiveFileListView : UserControl, IDisposable
|
||||
{
|
||||
public ArchiveFileListView()
|
||||
|
@@ -32,9 +32,6 @@ using System.Windows.Controls;
|
||||
|
||||
namespace QuickLook.Plugin.ArchiveViewer;
|
||||
|
||||
/// <summary>
|
||||
/// Interaction logic for ArchiveInfoPanel.xaml
|
||||
/// </summary>
|
||||
public partial class ArchiveInfoPanel : UserControl, IDisposable, INotifyPropertyChanged
|
||||
{
|
||||
private readonly Dictionary<string, ArchiveFileEntry> _fileEntries = [];
|
||||
|
@@ -196,7 +196,7 @@ public static class IconManager
|
||||
public const uint FileAttributeDirectory = 0x00000010;
|
||||
|
||||
[DllImport("Shell32.dll")]
|
||||
public static extern IntPtr SHGetFileInfo(
|
||||
public static extern nint SHGetFileInfo(
|
||||
string pszPath,
|
||||
uint dwFileAttributes,
|
||||
ref Shfileinfo psfi,
|
||||
@@ -208,7 +208,7 @@ public static class IconManager
|
||||
public struct Shfileinfo
|
||||
{
|
||||
private const int Namesize = 80;
|
||||
public readonly IntPtr hIcon;
|
||||
public readonly nint hIcon;
|
||||
private readonly int iIcon;
|
||||
private readonly uint dwAttributes;
|
||||
|
||||
@@ -232,6 +232,6 @@ public static class IconManager
|
||||
/// <param name="hIcon">Pointer to icon handle.</param>
|
||||
/// <returns>N/A</returns>
|
||||
[DllImport("User32.dll")]
|
||||
public static extern int DestroyIcon(IntPtr hIcon);
|
||||
public static extern int DestroyIcon(nint hIcon);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user