Skip to content

Commit 96944cd

Browse files
author
Sven Erb
committed
Made base class abstract.
1 parent 13f4448 commit 96944cd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ReaderWriter/3rdPartyFormatAdapters/GCODE/GCodeReaderWriter/GCodeCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public class ToolParams
7171
int toolNumber;
7272
}
7373

74-
public class GCodeCommand
74+
public abstract class GCodeCommand
7575
{
7676
// The GCode of the command
7777
public readonly GCode gCode;
@@ -604,7 +604,7 @@ public GCodeCommand ParseLine(string serializedCmdLine)
604604
{
605605
return null;
606606
}
607-
return Activator.CreateInstance(typeof(MiscCommand), new Object[] { PrepCode.Comment, 0, commentString }) as GCodeCommand;
607+
return Activator.CreateInstance(typeof(MiscCommand), new Object[] { PrepCode.Comment, 0, null, commentString }) as GCodeCommand;
608608
}
609609

610610
string[] commandArr = commandString.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);

0 commit comments

Comments
 (0)