mirror of
https://github.com/fadden/6502bench.git
synced 2025-01-16 19:32:31 +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 constructor -- create instances with factory methods.
|
||||||
private FormattedParts() { }
|
private FormattedParts() {
|
||||||
|
Offset = Addr = Bytes = Flags = Attr = Label = Opcode = Operand = Comment =
|
||||||
|
string.Empty;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clones the specified object.
|
/// Clones the specified object.
|
||||||
|
@ -502,7 +502,7 @@ namespace SourceGen {
|
|||||||
bool suppressLabel = false;
|
bool suppressLabel = false;
|
||||||
if (LongLabelNewLine && (line.LineType == LineListGen.Line.Type.Code ||
|
if (LongLabelNewLine && (line.LineType == LineListGen.Line.Type.Code ||
|
||||||
line.LineType == LineListGen.Line.Type.Data)) {
|
line.LineType == LineListGen.Line.Type.Data)) {
|
||||||
int labelLen = string.IsNullOrEmpty(parts.Label) ? 0 : parts.Label.Length;
|
int labelLen = parts.Label.Length;
|
||||||
if (labelLen > maxLabelLen) {
|
if (labelLen > maxLabelLen) {
|
||||||
// put on its own line
|
// put on its own line
|
||||||
string lstr;
|
string lstr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user