Skip to content

Commit

Permalink
[GUI] Always initialize Category::id
Browse files Browse the repository at this point in the history
It didn't get initialized in the root category.

This does not fix anything critical but it makes valgrind happy.
  • Loading branch information
gergondet committed Aug 2, 2023
1 parent f40e431 commit 4717774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/mc_rtc/gui/StateBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ struct MC_RTC_GUI_DLLAPI StateBuilder
* iterator to it, otherwise returns end() */
std::vector<Category>::iterator find(const std::string & name);
/** For each category, keeps track of the line id for next elements added */
int id;
int id = 0;
/** Returns the number of elements in this category and its sub-categories */
inline size_t size() const
{
Expand Down

0 comments on commit 4717774

Please sign in to comment.