Skip to content

Commit

Permalink
schema: fix error attempting to unmarshal a non-pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaliance committed Sep 4, 2017
1 parent 4004c7d commit 01c7b2b
Show file tree
Hide file tree
Showing 17 changed files with 27 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ lCT_MultiLvlStrRef:
case xml.StartElement:
switch el.Name.Local {
case "f":
if err := d.DecodeElement(m.F, &el); err != nil {
if err := d.DecodeElement(&m.F, &el); err != nil {
return err
}
case "multiLvlStrCache":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ lCT_NumRef:
case xml.StartElement:
switch el.Name.Local {
case "f":
if err := d.DecodeElement(m.F, &el); err != nil {
if err := d.DecodeElement(&m.F, &el); err != nil {
return err
}
case "numCache":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ lCT_NumVal:
case xml.StartElement:
switch el.Name.Local {
case "v":
if err := d.DecodeElement(m.V, &el); err != nil {
if err := d.DecodeElement(&m.V, &el); err != nil {
return err
}
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ lCT_PivotSource:
case xml.StartElement:
switch el.Name.Local {
case "name":
if err := d.DecodeElement(m.Name, &el); err != nil {
if err := d.DecodeElement(&m.Name, &el); err != nil {
return err
}
case "fmtId":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ lCT_StrRef:
case xml.StartElement:
switch el.Name.Local {
case "f":
if err := d.DecodeElement(m.F, &el); err != nil {
if err := d.DecodeElement(&m.F, &el); err != nil {
return err
}
case "strCache":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ lCT_StrVal:
case xml.StartElement:
switch el.Name.Local {
case "v":
if err := d.DecodeElement(m.V, &el); err != nil {
if err := d.DecodeElement(&m.V, &el); err != nil {
return err
}
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ lCT_Marker:
case xml.StartElement:
switch el.Name.Local {
case "x":
if err := d.DecodeElement(m.X, &el); err != nil {
if err := d.DecodeElement(&m.X, &el); err != nil {
return err
}
case "y":
if err := d.DecodeElement(m.Y, &el); err != nil {
if err := d.DecodeElement(&m.Y, &el); err != nil {
return err
}
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,19 @@ lCT_Marker:
case xml.StartElement:
switch el.Name.Local {
case "col":
if err := d.DecodeElement(m.Col, &el); err != nil {
if err := d.DecodeElement(&m.Col, &el); err != nil {
return err
}
case "colOff":
if err := d.DecodeElement(m.ColOff, &el); err != nil {
if err := d.DecodeElement(&m.ColOff, &el); err != nil {
return err
}
case "row":
if err := d.DecodeElement(m.Row, &el); err != nil {
if err := d.DecodeElement(&m.Row, &el); err != nil {
return err
}
case "rowOff":
if err := d.DecodeElement(m.RowOff, &el); err != nil {
if err := d.DecodeElement(&m.RowOff, &el); err != nil {
return err
}
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@ lFrom:
case xml.StartElement:
switch el.Name.Local {
case "col":
if err := d.DecodeElement(m.Col, &el); err != nil {
if err := d.DecodeElement(&m.Col, &el); err != nil {
return err
}
case "colOff":
if err := d.DecodeElement(m.ColOff, &el); err != nil {
if err := d.DecodeElement(&m.ColOff, &el); err != nil {
return err
}
case "row":
if err := d.DecodeElement(m.Row, &el); err != nil {
if err := d.DecodeElement(&m.Row, &el); err != nil {
return err
}
case "rowOff":
if err := d.DecodeElement(m.RowOff, &el); err != nil {
if err := d.DecodeElement(&m.RowOff, &el); err != nil {
return err
}
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@ lTo:
case xml.StartElement:
switch el.Name.Local {
case "col":
if err := d.DecodeElement(m.Col, &el); err != nil {
if err := d.DecodeElement(&m.Col, &el); err != nil {
return err
}
case "colOff":
if err := d.DecodeElement(m.ColOff, &el); err != nil {
if err := d.DecodeElement(&m.ColOff, &el); err != nil {
return err
}
case "row":
if err := d.DecodeElement(m.Row, &el); err != nil {
if err := d.DecodeElement(&m.Row, &el); err != nil {
return err
}
case "rowOff":
if err := d.DecodeElement(m.RowOff, &el); err != nil {
if err := d.DecodeElement(&m.RowOff, &el); err != nil {
return err
}
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ lCT_RegularTextRun:
return err
}
case "t":
if err := d.DecodeElement(m.T, &el); err != nil {
if err := d.DecodeElement(&m.T, &el); err != nil {
return err
}
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ lCT_DigSigBlob:
case xml.StartElement:
switch el.Name.Local {
case "blob":
if err := d.DecodeElement(m.Blob, &el); err != nil {
if err := d.DecodeElement(&m.Blob, &el); err != nil {
return err
}
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ lCT_Comment:
return err
}
case "text":
if err := d.DecodeElement(m.Text, &el); err != nil {
if err := d.DecodeElement(&m.Text, &el); err != nil {
return err
}
case "extLst":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ lCT_DdeValue:
case xml.StartElement:
switch el.Name.Local {
case "val":
if err := d.DecodeElement(m.Val, &el); err != nil {
if err := d.DecodeElement(&m.Val, &el); err != nil {
return err
}
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ lCT_PhoneticRun:
case xml.StartElement:
switch el.Name.Local {
case "t":
if err := d.DecodeElement(m.T, &el); err != nil {
if err := d.DecodeElement(&m.T, &el); err != nil {
return err
}
default:
Expand Down
2 changes: 1 addition & 1 deletion schema/schemas.openxmlformats.org/spreadsheetml/CT_RElt.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ lCT_RElt:
return err
}
case "t":
if err := d.DecodeElement(m.T, &el); err != nil {
if err := d.DecodeElement(&m.T, &el); err != nil {
return err
}
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ lCT_VolTopic:
case xml.StartElement:
switch el.Name.Local {
case "v":
if err := d.DecodeElement(m.V, &el); err != nil {
if err := d.DecodeElement(&m.V, &el); err != nil {
return err
}
case "stp":
Expand Down

0 comments on commit 01c7b2b

Please sign in to comment.