From: pjrm Date: Thu, 17 May 2007 22:46:46 +0000 (+0000) Subject: noop: Use G_N_ELEMENTS in attach_all callers instead of passing sizeof. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2955009a65ecc64e448d2b8deb478705ff10a38f;p=inkscape.git noop: Use G_N_ELEMENTS in attach_all callers instead of passing sizeof. --- diff --git a/src/ui/dialog/document-properties.cpp b/src/ui/dialog/document-properties.cpp index 4fc3e5497..4bf4db48a 100644 --- a/src/ui/dialog/document-properties.cpp +++ b/src/ui/dialog/document-properties.cpp @@ -152,16 +152,16 @@ DocumentProperties::~DocumentProperties() //======================================================================== /** - * Helper function that attachs widgets in a 3xn table. The widgets come in an + * Helper function that attaches widgets in a 3xn table. The widgets come in an * array that has two entries per table row. The two entries code for four * possible cases: (0,0) means insert space in first column; (0, non-0) means * widget in columns 2-3; (non-0, 0) means label in columns 1-3; and * (non-0, non-0) means two widgets in columns 2 and 3. **/ inline void -attach_all(Gtk::Table &table, Gtk::Widget *const arr[], unsigned size, int start = 0) +attach_all(Gtk::Table &table, Gtk::Widget *const arr[], unsigned const n, int start = 0) { - for (unsigned i=0, r=start; i