mirror of
https://github.com/fadden/6502bench.git
synced 2024-12-29 08:29:52 +00:00
Init all FormattedParts strings fields to an empty string
Fixes issue #51.
This commit is contained in:
parent
abc2df5c04
commit
710a8dc679
@ -366,7 +366,10 @@ namespace SourceGen {
|
||||
|
||||
|
||||
// Private constructor -- create instances with factory methods.
|
||||
private FormattedParts() { }
|
||||
private FormattedParts() {
|
||||
Offset = Addr = Bytes = Flags = Attr = Label = Opcode = Operand = Comment =
|
||||
string.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clones the specified object.
|
||||
|
@ -502,7 +502,7 @@ namespace SourceGen {
|
||||
bool suppressLabel = false;
|
||||
if (LongLabelNewLine && (line.LineType == LineListGen.Line.Type.Code ||
|
||||
line.LineType == LineListGen.Line.Type.Data)) {
|
||||
int labelLen = string.IsNullOrEmpty(parts.Label) ? 0 : parts.Label.Length;
|
||||
int labelLen = parts.Label.Length;
|
||||
if (labelLen > maxLabelLen) {
|
||||
// put on its own line
|
||||
string lstr;
|
||||
|
Loading…
Reference in New Issue
Block a user