From 7ee817b324bdadc7cfc1c5cf86ad0629e92cb25a Mon Sep 17 00:00:00 2001 From: Anuradha Dissanayake Date: Sun, 11 Nov 2012 19:42:30 +1300 Subject: [PATCH] Add gcc compile fixes --- plugins/workflow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/workflow.cpp b/plugins/workflow.cpp index 1a8f93a9c..2d3746e71 100644 --- a/plugins/workflow.cpp +++ b/plugins/workflow.cpp @@ -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(text, elem)); if (text.length() > max_item_width) @@ -1990,7 +1990,7 @@ namespace wf_ui if (auto_select && !multiselect) { - for (vector< ListEntry >::iterator it = list.begin(); it != list.end(); it++) + for (typename vector< ListEntry >::iterator it = list.begin(); it != list.end(); it++) { it->selected = false; } @@ -2026,7 +2026,7 @@ namespace wf_ui vector getSelectedElems(bool only_one = false) { vector results; - for (vector< ListEntry >::iterator it = list.begin(); it != list.end(); it++) + for (typename vector< ListEntry >::iterator it = list.begin(); it != list.end(); it++) { if ((*it).selected) {