}
void add_sidebar_item (SideBarItem item) {
- items.insert (items.cend(), item);
+ this->items.insert (this->items.cend(), item);
}
// render the sidebar using the template directory specified
sidetpl.close ();
std::string listitem;
// first get the sidebar items and render them to HTML
- for (SideBarItem item : items) {
+ for (SideBarItem item : this->items) {
listitem += item.to_html (templatedir);
}