Add gcc compile fixes

develop
Anuradha Dissanayake 2012-11-11 19:42:30 +13:00
parent 6803a83e07
commit 7ee817b324
1 changed files with 4 additions and 4 deletions

@ -466,7 +466,7 @@ static void enable_plugin(color_ostream &out)
* JOB AUTO-RECOVERY *
******************************/
static void forget_job(color_ostream &out, ProtectedJob *pj)
static void forget_job(const color_ostream &out, ProtectedJob *pj)
{
known_jobs.erase(pj->id);
delete pj;
@ -1880,7 +1880,7 @@ namespace wf_ui
max_item_width = entry.text.length();
}
void add(string &text, T &elem)
void add(const string &text, T &elem)
{
list.push_back(ListEntry<T>(text, elem));
if (text.length() > max_item_width)
@ -1990,7 +1990,7 @@ namespace wf_ui
if (auto_select && !multiselect)
{
for (vector< ListEntry<T> >::iterator it = list.begin(); it != list.end(); it++)
for (typename vector< ListEntry<T> >::iterator it = list.begin(); it != list.end(); it++)
{
it->selected = false;
}
@ -2026,7 +2026,7 @@ namespace wf_ui
vector<T*> getSelectedElems(bool only_one = false)
{
vector<T*> results;
for (vector< ListEntry<T> >::iterator it = list.begin(); it != list.end(); it++)
for (typename vector< ListEntry<T> >::iterator it = list.begin(); it != list.end(); it++)
{
if ((*it).selected)
{