Code cleanups

on behalf of Lebedev, see issue 1355
This commit is contained in:
Oliver Duis
2012-05-06 22:10:37 +02:00
parent 686188d6bb
commit 1483ecb47c
125 changed files with 750 additions and 747 deletions

View File

@@ -41,7 +41,7 @@ CurveEditorGroup::CurveEditorGroup (Glib::ustring groupLabel) : cl(NULL), cp(NUL
}
CurveEditorGroup::~CurveEditorGroup() {
for (std::vector<CurveEditor*>::iterator i = curveEditors.begin(); i != curveEditors.end(); ++i)
for (std::vector<CurveEditor*>::const_iterator i = curveEditors.begin(); i != curveEditors.end(); ++i)
{
delete *i;
}
@@ -100,8 +100,8 @@ void CurveEditorGroup::newLine() {
headerBox->pack_end (*curve_reset, Gtk::PACK_SHRINK, 0);
}
int j = numberOfPackedCurve;
for (int i = (int)(curveEditors.size())-1; i >= j; i--)
size_t j = numberOfPackedCurve;
for (size_t i = curveEditors.size()-1; i > j; i--)
{
headerBox->pack_end (*curveEditors[i]->curveType->buttonGroup, Gtk::PACK_EXPAND_WIDGET, 2);
numberOfPackedCurve++;
@@ -268,7 +268,7 @@ void CurveEditorGroup::curveResetPressed () {
}
void CurveEditorGroup::setBatchMode (bool batchMode) {
for (std::vector<CurveEditor*>::iterator i = curveEditors.begin(); i != curveEditors.end(); ++i) {
for (std::vector<CurveEditor*>::const_iterator i = curveEditors.begin(); i != curveEditors.end(); ++i) {
(*i)->curveType->addEntry("curveType-unchanged.png", M("GENERAL_UNCHANGED"));
(*i)->curveType->show();
}