mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
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:
parent
a97c4f51c3
commit
737a9ddcf4
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user