Browse files

Couple of fixes

svn path=/trunk/monocov/; revision=16040
  • Loading branch information...
1 parent 055e81f commit b74ad6ccf9a1a35949b0f9471c95adb73f37bd9e @migueldeicaza migueldeicaza committed Jul 8, 2003
Showing with 7 additions and 6 deletions.
  1. +4 −4 CoverageModel.cs
  2. +3 −2 Makefile
View
8 CoverageModel.cs
@@ -273,8 +273,8 @@ public class CoverageModel : CoverageItem {
offset += prev_offset;
prev_offset = offset;
- int line1;
- int line2;
+ int line1 = 0;
+ int line2 = 0;
bool found = GetSourceRangeFor (offset, method, lines, ref line1, ref line2);
@@ -327,8 +327,8 @@ public class CoverageModel : CoverageItem {
* entries.
*/
- int beginOffset;
- int endOffset;
+ int beginOffset = 0;
+ int endOffset = 0;
int i;
for (i = 0; i < lines.Length; ++i) {
View
5 Makefile
@@ -1,14 +1,15 @@
PROJECTNAME = monocov
-GUI = qt
+GUI = gtk
MONO_ROOT = ../mono
all: monocov.exe libmono-profiler-monocov.so symbols.exe nunit-console.exe
ifeq ($(GUI), gtk)
GUI_SRCS = \
gui/gtk/MonoCov.cs \
- gui/gtk/CoverageView.cs
+ gui/gtk/CoverageView.cs \
+ gui/gtk/SourceWindow.cs
GUI_LIBS = -r gtk-sharp.dll -r gdk-sharp.dll -r glib-sharp.dll -r glade-sharp.dll -r gnome-sharp.dll -r System.Drawing -resource:gui/gtk/monocov.glade,monocov.glade
else
GUI_SRCS = \

0 comments on commit b74ad6c

Please sign in to comment.