Suppress compiler warnings

This commit is contained in:
Paddy Xu
2017-05-15 00:25:31 +03:00
parent a65ddce4cf
commit b210b03383
3 changed files with 5 additions and 9 deletions

View File

@@ -102,14 +102,6 @@ namespace QuickLook.Plugin.PDFViewer
}
}
internal struct NativePage
{
public Matrix Ctm;
public Rectangle MediaBox;
public int Rotate;
}
internal class NativeMethods
{
private const uint FZ_STORE_DEFAULT = 256 << 20;

View File

@@ -12,12 +12,14 @@ namespace QuickLook.Plugin.VideoViewer
/// </summary>
public partial class ViewerPanel : UserControl, IDisposable
{
private ContextObject _context;
private readonly ContextObject _context;
public ViewerPanel(ContextObject context)
{
InitializeComponent();
_context = context;
buttonPlayPause.MouseLeftButtonUp += TogglePlayPause;
mediaElement.PropertyChanged += ChangePlayPauseButton;

View File

@@ -81,7 +81,9 @@ namespace QuickLook
throw;
}
}
#pragma warning disable 1058
catch // Catch SEH exceptions here.
#pragma warning restore 1058
{
_viewWindow.Close();