Code cleanups

on behalf of Lebedev, see issue 1332
This commit is contained in:
Oliver Duis
2012-04-22 10:44:51 +02:00
parent 0dec768a2b
commit 29dc72e26c
105 changed files with 539 additions and 690 deletions

View File

@@ -86,7 +86,7 @@ void RenameDialog::fillTemplateList () {
templateModel->clear ();
for (int i=0; i<options.renameTemplates.size(); i++) {
for (size_t i=0; i<options.renameTemplates.size(); i++) {
Gtk::TreeModel::iterator iter = templateModel->append ();
iter->set_value (templateColumns.tmplName, options.renameTemplates[i]);
iter->set_value (templateColumns.rowSeparator, false);
@@ -182,7 +182,7 @@ void RenameTemplateEditor::refreshTemplateList () {
list->clear_items ();
for (int i=0; i<options.renameTemplates.size(); i++)
for (size_t i=0; i<options.renameTemplates.size(); i++)
list->append_text (options.renameTemplates[i]);
}
@@ -198,7 +198,7 @@ void RenameTemplateEditor::addPressed () {
void RenameTemplateEditor::delPressed () {
std::vector<int> sel = list->get_selected ();
for (int i=0; i<sel.size(); i++) {
for (size_t i=0; i<sel.size(); i++) {
Glib::ustring toDel = list->get_text (sel[i]);
std::vector<Glib::ustring>::iterator f = std::find (options.renameTemplates.begin(), options.renameTemplates.end(), toDel);
if (f!=options.renameTemplates.end())