Skip to content

Commit

Permalink
Don't silently use index -1
Browse files Browse the repository at this point in the history
  • Loading branch information
shundhammer committed Oct 28, 2020
1 parent bdb68d4 commit f2f4874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NCTablePadBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class NCTablePadBase : public NCPad
/**
* Create a new item from 'cells' and add it to the end of _items.
**/
void Append( std::vector<NCTableCol*> & cells, int index = -1 )
void Append( std::vector<NCTableCol*> & cells, int index )
{ AddLine( Lines(), new NCTableLine( cells, index ) ); }

/**
Expand Down

0 comments on commit f2f4874

Please sign in to comment.