c-assert expects an int, so don't pass it a pointer.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4394 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2002-06-13 16:05:32 +00:00
parent a97c4f51c3
commit 737a9ddcf4
3 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2002-06-12 Angus Leeming <leeming@lyx.org>
* boost/signals/connection.hpp:
* libs/signals/src/connection.cpp: c-assert expects an int, so don't
pass it a pointer.
2002-06-03 Lars Gullik Bjønnes <larsbj@birdstep.com>
* libs/regex/src/Makefile.am: only compile the source files that

View File

@ -151,7 +151,8 @@ namespace boost {
inline void
connection::add_bound_object(const signals::detail::bound_object& b)
{
assert(con.get());
// c-assert expects an int, so don't pass it a pointer
assert(con.get() != 0);
con->bound_objects.push_back(b);
}

View File

@ -39,7 +39,8 @@ namespace boost {
typedef std::list<signals::detail::bound_object>::iterator iterator;
for (iterator i = local_con->bound_objects.begin();
i != local_con->bound_objects.end(); ++i) {
assert(i->disconnect);
// c-assert expects an int, so don't pass it a pointer
assert(i->disconnect != 0);
i->disconnect(i->obj, i->data);
}
}