Browse Source

fixed some compiler warnings

pull/23/head
Siegfried Pammer 14 years ago
parent
commit
63bbc50e24
  1. 2
      src/AddIns/Debugger/Debugger.Core/Breakpoint.cs
  2. 4
      src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/CodeEditorView.cs
  3. 2
      src/AddIns/DisplayBindings/ILSpyAddIn/ViewContent/CodeView.cs
  4. 2
      src/Main/Base/Project/Src/Gui/Dialogs/ReferenceDialog/ServiceReference/AddServiceReferenceViewModel.cs
  5. 2
      src/Main/ICSharpCode.SharpDevelop.Widgets/Project/CustomWindowsFormsHost.cs

2
src/AddIns/Debugger/Debugger.Core/Breakpoint.cs

@ -205,7 +205,7 @@ namespace Debugger
return true; return true;
} catch } catch
#if DEBUG #if DEBUG
(System.Exception ex) (System.Exception)
#endif #endif
{ {
return false; return false;

4
src/AddIns/DisplayBindings/AvalonEdit.AddIn/Src/CodeEditorView.cs

@ -236,7 +236,7 @@ namespace ICSharpCode.AvalonEdit.AddIn
var pos = this.TextArea.TextView.GetPositionFloor(e.GetPosition(this.TextArea.TextView) + this.TextArea.TextView.ScrollOffset); var pos = this.TextArea.TextView.GetPositionFloor(e.GetPosition(this.TextArea.TextView) + this.TextArea.TextView.ScrollOffset);
args.InDocument = pos.HasValue; args.InDocument = pos.HasValue;
if (pos.HasValue) { if (pos.HasValue) {
args.LogicalPosition = AvalonEditDocumentAdapter.ToLocation(pos.Value); args.LogicalPosition = AvalonEditDocumentAdapter.ToLocation(pos.Value.Location);
} }
if (args.InDocument) { if (args.InDocument) {
@ -484,7 +484,7 @@ namespace ICSharpCode.AvalonEdit.AddIn
if (position == null) if (position == null)
return; return;
Core.AnalyticsMonitorService.TrackFeature(typeof(GoToDefinition).FullName, "Ctrl+Click"); Core.AnalyticsMonitorService.TrackFeature(typeof(GoToDefinition).FullName, "Ctrl+Click");
this.GotoDefinitionCommand.Run(this.Adapter, this.Document.GetOffset(position.Value)); this.GotoDefinitionCommand.Run(this.Adapter, this.Document.GetOffset(position.Value.Location));
e.Handled = true; e.Handled = true;
} }
} }

2
src/AddIns/DisplayBindings/ILSpyAddIn/ViewContent/CodeView.cs

@ -81,7 +81,7 @@ namespace ICSharpCode.ILSpyAddIn.ViewContent
var pos = adapter.TextEditor.GetPositionFromPoint(e.GetPosition(this)); var pos = adapter.TextEditor.GetPositionFromPoint(e.GetPosition(this));
args.InDocument = pos.HasValue; args.InDocument = pos.HasValue;
if (pos.HasValue) { if (pos.HasValue) {
args.LogicalPosition = AvalonEditDocumentAdapter.ToLocation(pos.Value); args.LogicalPosition = AvalonEditDocumentAdapter.ToLocation(pos.Value.Location);
} }
if (!args.Handled) { if (!args.Handled) {

2
src/Main/Base/Project/Src/Gui/Dialogs/ReferenceDialog/ServiceReference/AddServiceReferenceViewModel.cs

@ -69,7 +69,7 @@ namespace ICSharpCode.SharpDevelop.Gui.Dialogs.ReferenceDialog.ServiceReference
public AddServiceReferenceViewModel(IProject project) public AddServiceReferenceViewModel(IProject project)
{ {
project = project; this.project = project;
discoverButtonContend = "Disvover"; discoverButtonContend = "Disvover";
HeadLine = header1 + header2; HeadLine = header1 + header2;

2
src/Main/ICSharpCode.SharpDevelop.Widgets/Project/CustomWindowsFormsHost.cs

@ -32,7 +32,7 @@ namespace ICSharpCode.SharpDevelop.Widgets
// We don't need most of that. // We don't need most of that.
// Bugs in the our implementation: // Bugs in our implementation:
// - Slight background color mismatch in project options // - Slight background color mismatch in project options
static class Win32 static class Win32

Loading…
Cancel
Save