Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Vectorutils, ArrayHandle: Check for NULL pointers. | Krzesimir Nowak | 2011-03-21 | 1 | -9/+12 |
| | | | | | | | | | | | | | | | * glib/glibmm/vectorutils.[h|cc]: Don't crash in compute_array_size2, when NULL is passed - in that case just return 0. Also, array_to_vector method return empty vector in such case. * glib/glibmm/arrayhandle.[h|cc]: Set array_size to zero if passed array is NULL. * tests/glibmm_null_vectorutils/main.cc: New test for NULL arrays and lists for vectorutils. * tests/glibmm_null_containerhandle/main.cc: New test for NULL arrays and lists for containerhandles. * tests/Makefile.am: Added new tests to build. Spotted by Kalev Lember. Bug #645245. | ||||
* | Fixed code style. | Murray Cumming | 2011-01-27 | 1 | -12/+12 |
| | |||||
* | Added vectorutils.h. | Krzesimir Nowak | 2011-01-27 | 1 | -0/+73 |
* glib/glibmm/vectorutils.[h|cc]: New files implementing an array, list, slist <-> std::vector convertions. It implements also a specialization for bool types. * glib/glibmm.h: Include vectorutils.h. * glib/glibmm/filelist.am: Added vectorutils to build. * tests/glibmm_vector/main.cc: New test for general vectorutils check. * tests/glibmm_bool_vector/main.cc: New test checking bool specializations. * tests/Makefile.am: Added above tests to build system. |