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

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

@ -236,7 +236,7 @@ namespace ICSharpCode.AvalonEdit.AddIn @@ -236,7 +236,7 @@ namespace ICSharpCode.AvalonEdit.AddIn
var pos = this.TextArea.TextView.GetPositionFloor(e.GetPosition(this.TextArea.TextView) + this.TextArea.TextView.ScrollOffset);
args.InDocument = pos.HasValue;
if (pos.HasValue) {
args.LogicalPosition = AvalonEditDocumentAdapter.ToLocation(pos.Value);
args.LogicalPosition = AvalonEditDocumentAdapter.ToLocation(pos.Value.Location);
}
if (args.InDocument) {
@ -484,7 +484,7 @@ namespace ICSharpCode.AvalonEdit.AddIn @@ -484,7 +484,7 @@ namespace ICSharpCode.AvalonEdit.AddIn
if (position == null)
return;
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;
}
}

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

@ -81,7 +81,7 @@ namespace ICSharpCode.ILSpyAddIn.ViewContent @@ -81,7 +81,7 @@ namespace ICSharpCode.ILSpyAddIn.ViewContent
var pos = adapter.TextEditor.GetPositionFromPoint(e.GetPosition(this));
args.InDocument = pos.HasValue;
if (pos.HasValue) {
args.LogicalPosition = AvalonEditDocumentAdapter.ToLocation(pos.Value);
args.LogicalPosition = AvalonEditDocumentAdapter.ToLocation(pos.Value.Location);
}
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 @@ -69,7 +69,7 @@ namespace ICSharpCode.SharpDevelop.Gui.Dialogs.ReferenceDialog.ServiceReference
public AddServiceReferenceViewModel(IProject project)
{
project = project;
this.project = project;
discoverButtonContend = "Disvover";
HeadLine = header1 + header2;

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

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

Loading…
Cancel
Save