+2004-09-27 Lars Gullik Bjonnes <larsbj@gullik.net>
+
+ * GXpmBtnTbl.C (construct): use Boost.Assert
+
+ * GToolbar.C (update): make items const
+
2004-09-27 John Spray <spray_john@users.sourceforge.net>
* GBC.C: Don't let the button controller set the label on GTK+
void GToolbar::update()
{
- int items = toolbar_.get_n_items();
+ int const items = toolbar_.get_n_items();
for (int i = 0; i < items; ++i) {
Gtk::ToolItem * item = toolbar_.get_nth_item(i);
#include <gtkmm.h>
-#include <cassert>
+#include <boost/assert.hpp>
void GXpmBtnTbl::GXpmBtn::setXpm(XpmData xpm)
void GXpmBtnTbl::construct()
{
- assert(rows_);
- assert(cols_);
+ BOOST_ASSERT(rows_);
+ BOOST_ASSERT(cols_);
btns_.reset(new GXpmBtn[rows_ * cols_]);
- assert(btns_.get());
+ BOOST_ASSERT(btns_.get());
for (int row = 0; row < rows_; ++row)
for (int col = 0; col < cols_; ++col) {