From 82d82f7a119bb45b707862f56e96efc7a796185a Mon Sep 17 00:00:00 2001 From: John Spray Date: Sat, 20 Nov 2004 21:26:13 +0000 Subject: [PATCH 1/1] use size_t instead of unsigned int where appropriate git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9281 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/gtk/GBox.C | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/frontends/gtk/GBox.C b/src/frontends/gtk/GBox.C index 20be956965..a1cd1b3412 100644 --- a/src/frontends/gtk/GBox.C +++ b/src/frontends/gtk/GBox.C @@ -152,7 +152,7 @@ void GBox::update() contenthorzcombo_->set_active(string("lcrs").find(c, 0)); string type(controller().params().type); - for (unsigned int i = 0; i < gui_names_.size(); ++i) { + for (size_t i = 0; i < gui_names_.size(); ++i) { if (type == ids_[i]) typecombo_->set_active(i); } @@ -174,11 +174,11 @@ void GBox::update() string const special(controller().params().special); if (!special.empty() && special != "none") { string spc; - for (unsigned int i = 0; i < gui_names_spec_.size(); ++i) { + for (size_t i = 0; i < gui_names_spec_.size(); ++i) { if (special == ids_spec_[i]) spc = gui_names_spec_[i]; } - for (unsigned int j = 0; j + for (size_t j = 0; j < widthunitsstore_->children().size(); ++j) { if (widthunitsstore_->children()[j][stringcol_] == spc) widthunitscombo_->set_active(j); @@ -192,12 +192,12 @@ void GBox::update() string const height_special(controller().params().height_special); if (!height_special.empty() && height_special != "none") { string hspc; - for (unsigned int i = 0; i < gui_names_spec_.size(); ++i) { + for (size_t i = 0; i < gui_names_spec_.size(); ++i) { if (height_special == ids_spec_[i]) { hspc = gui_names_spec_[i]; } } - for (unsigned int j = 0; j < heightunitscombo_->get_model()->children().size(); ++j) { + for (size_t j = 0; j < heightunitscombo_->get_model()->children().size(); ++j) { if (heightunitscombo_->get_model()->children()[j][stringcol_] == hspc) { heightunitscombo_->set_active(j); } @@ -235,7 +235,7 @@ void GBox::setSpecial(bool ibox) (*widthunitsstore_->append())[stringcol_] = *it; } - unsigned int const store_size = widthunitsstore_->children().size(); + size_t const store_size = widthunitsstore_->children().size(); if (initselection >= store_size) { widthunitscombo_->set_active(0); onWidthChanged(); @@ -358,7 +358,7 @@ void GBox::onHeightChanged() int i = 0; bool spec = false; Glib::ustring special = (*heightunitscombo_->get_active())[stringcol_]; - for (unsigned int j = 1; j < gui_names_spec_.size() ; ++j) { + for (size_t j = 1; j < gui_names_spec_.size() ; ++j) { if (gui_names_spec_[j] == special) { i=j; spec = true; @@ -390,7 +390,7 @@ void GBox::onWidthChanged() int i = 0; bool spec = false; Glib::ustring special = (*widthunitscombo_->get_active())[stringcol_]; - for (unsigned int j = 1; j < gui_names_spec_.size() ; ++j) { + for (size_t j = 1; j < gui_names_spec_.size() ; ++j) { if (gui_names_spec_[j] == special) { i = j; spec = true; -- 2.39.2