This commit is contained in:
Yeechan Lu 2014-03-18 12:28:48 +08:00
Родитель b7893c2820
Коммит b9c58adae6
7 изменённых файлов: 14 добавлений и 8 удалений

Просмотреть файл

@ -632,6 +632,7 @@ namespace Python.Runtime {
// This version avoids a managed <-> unmanaged transition. This one
// does incref the returned type object.
[CLSCompliant(false)]
public unsafe static IntPtr
PyObject_Type(IntPtr op) {
IntPtr tp = PyObject_TYPE(op);
@ -838,6 +839,7 @@ namespace Python.Runtime {
public unsafe static extern IntPtr
PyLong_FromLong(long value);
[CLSCompliant(false)]
[DllImport(Runtime.dll, CallingConvention=CallingConvention.Cdecl,
ExactSpelling=true, CharSet=CharSet.Ansi)]
public unsafe static extern IntPtr
@ -853,6 +855,7 @@ namespace Python.Runtime {
public unsafe static extern IntPtr
PyLong_FromLongLong(long value);
[CLSCompliant(false)]
[DllImport(Runtime.dll, CallingConvention=CallingConvention.Cdecl,
ExactSpelling=true, CharSet=CharSet.Ansi)]
public unsafe static extern IntPtr
@ -868,6 +871,7 @@ namespace Python.Runtime {
public unsafe static extern int
PyLong_AsLong(IntPtr value);
[CLSCompliant(false)]
[DllImport(Runtime.dll, CallingConvention=CallingConvention.Cdecl,
ExactSpelling=true, CharSet=CharSet.Ansi)]
public unsafe static extern uint
@ -878,6 +882,7 @@ namespace Python.Runtime {
public unsafe static extern long
PyLong_AsLongLong(IntPtr value);
[CLSCompliant(false)]
[DllImport(Runtime.dll, CallingConvention=CallingConvention.Cdecl,
ExactSpelling=true, CharSet=CharSet.Ansi)]
public unsafe static extern ulong
@ -1046,6 +1051,7 @@ namespace Python.Runtime {
public unsafe static extern int
PyUnicode_GetSize(IntPtr ob);
[CLSCompliant(false)]
[DllImport(Runtime.dll, CallingConvention=CallingConvention.Cdecl,
EntryPoint="PyUnicodeUCS2_AsUnicode",
ExactSpelling=true)]
@ -1455,6 +1461,7 @@ namespace Python.Runtime {
public unsafe static extern int
PyType_Ready(IntPtr type);
[CLSCompliant(false)]
[DllImport(Runtime.dll, CallingConvention=CallingConvention.Cdecl,
ExactSpelling=true, CharSet=CharSet.Ansi)]
public unsafe static extern IntPtr
@ -1470,6 +1477,7 @@ namespace Python.Runtime {
public unsafe static extern int
PyObject_GenericSetAttr(IntPtr obj, IntPtr name, IntPtr value);
[CLSCompliant(false)]
[DllImport(Runtime.dll, CallingConvention=CallingConvention.Cdecl,
ExactSpelling=true, CharSet=CharSet.Ansi)]
public unsafe static extern IntPtr

Просмотреть файл

@ -46,7 +46,7 @@ namespace Wox.Infrastructure
{
storage = JsonConvert.DeserializeObject<CommonStorage>(json);
}
catch (Exception e)
catch (Exception)
{
LoadDefaultUserSetting();
}

Просмотреть файл

@ -7,7 +7,7 @@ namespace Wox.Infrastructure.UserSettings
[Serializable]
public class UserSelectedRecords
{
private static int hasAddedCount = 0;
// private static int hasAddedCount = 0;
public Dictionary<string,int> Records = new Dictionary<string, int>();

Просмотреть файл

@ -35,7 +35,7 @@ namespace Wox.Plugin.System
{
Process.Start(c.Url);
}
catch (Exception e)
catch (Exception)
{
MessageBox.Show("open url failed:" + c.Url);
}

Просмотреть файл

@ -165,8 +165,6 @@ namespace Wox.Plugin.System
static bool CopyCommand(string pszCommand, string pszDir, out string pszOut)
{
bool fRet = true;
pszOut = pszCommand;
if (pszCommand[0] != '"')
{

Просмотреть файл

@ -62,7 +62,7 @@ namespace Wox.Helper
return false;
}
}
catch (Exception ex)
catch (Exception)
{
// Probably dwmapi.dll not found (incompatible OS)
return false;

Просмотреть файл

@ -31,7 +31,7 @@ namespace Wox
public partial class MainWindow
{
private static readonly object locker = new object();
public static bool Initialized = false;
public static bool initialized = false;
private static readonly List<Result> waitShowResultList = new List<Result>();
private readonly GloablHotkey globalHotkey = new GloablHotkey();
@ -44,7 +44,7 @@ namespace Wox
public MainWindow()
{
InitializeComponent();
Initialized = true;
initialized = true;
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;