Skip to content

Commit

Permalink
Debugger: TeamInfo: Add SetTo() version
Browse files Browse the repository at this point in the history
... that doesn't expect a team_info.
  • Loading branch information
weinhold committed Apr 24, 2016
1 parent 86fe52b commit 3d26e83
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/apps/debugger/model/TeamInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,11 @@ TeamInfo::SetTo(team_id team, const team_info& info)
fTeam = team;
fArguments.SetTo(info.args);
}


void
TeamInfo::SetTo(team_id team, const BString& arguments)
{
fTeam = team;
fArguments.SetTo(arguments);
}
1 change: 1 addition & 0 deletions src/apps/debugger/model/TeamInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class TeamInfo {
const team_info& info);

void SetTo(team_id team, const team_info& info);
void SetTo(team_id team, const BString& arguments);

team_id TeamID() const { return fTeam; }

Expand Down

0 comments on commit 3d26e83

Please sign in to comment.