summaryrefslogtreecommitdiff
path: root/glib/glibmm/vectorutils.h
Commit message (Collapse)AuthorAgeFilesLines
* Vectorutils, ArrayHandle: Check for NULL pointers.Krzesimir Nowak2011-03-211-12/+20
| | | | | | | | | | | | | | | * 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.
* Vector utils: Corrected documentation and extended it bit.Krzesimir Nowak2011-02-011-6/+167
| | | | | | * glib/glibmm/vectorutils.h: Documented important parts of *Keeper classes and corrected examples in *Handler classes. The documentation mostly tries to explain memory management.
* Vector utils: Added simple documentation.Murray Cumming2011-01-301-15/+41
| | | | | | * glib/glibmm/vectorutils.h: Some simple documentation about the *Handler utility classes, though I need to correct the example code and explain the memory mangement when that is clear to me.
* Fixed code style.Murray Cumming2011-01-271-188/+188
|
* Added vectorutils.h.Krzesimir Nowak2011-01-271-0/+796
* 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.