summaryrefslogtreecommitdiffstats
path: root/src/Array.cpp
AgeCommit message (Collapse)AuthorFilesLines
2023-02-03Add lowercase begin/end iterator functionsGravatar Daniel1-0/+20
... for Dictionary and Array
2023-02-03Add PList::Array iterator member functionsGravatar Daniel1-0/+20
... returning both iterators and const_iterators: * PList::Array::Begin() * PList::Array::End()
2021-07-13cpp: Array: Make sure the array passed to array_fill ist passed by referenceGravatar liujianfengv1-1/+1
When creating a new Array object, for example through PList::Node::FromPlist(plist_t node), the array_fill function is called from Array() constructor in line 51. It seems that the intended way of calling array_fill() is to pass the _array object by reference, however it is actually passed by value. Thus the changes to the array object made by array_fill() are discarded when the function returns. This commit passes the _array by reference so we keep the changes.
2021-06-22[clang-tidy] cpp: Use correct type for loop variableGravatar Rosen Penev1-4/+2
Found with bugprone-too-small-loop-variable Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-06-22[clang-tidy] cpp: Turn reference operators to constGravatar Rosen Penev1-1/+1
Found with cppcoreguidelines-c-copy-assignment-signature Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-06-03c++: Switch to c++ headersGravatar Rosen Penev1-2/+2
[clang-tidy]Found with hicpp-deprecated-headers Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-06-03c++: Remove redundant initializationGravatar Rosen Penev1-1/+1
[clang-tidy] Found with readability-redundant-member-init Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-06-03c++: Add closing namespace commentGravatar Rosen Penev1-1/+1
[clang-tidy] Found with google-readability-namespace-comments Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-05-19plist_array_get_item_index(): return UINT_MAX instead of 0 when node can't ↵Gravatar Nikias Bassen1-0/+4
be found
2019-01-21plist: Add iterator for #PLIST_ARRAY nodesGravatar Nikias Bassen1-22/+16
Similar to #PLIST_DICT, an iterator can now be used for #PLIST_ARRAY nodes. Get an iterator with plist_array_new_iter() and use plist_array_next_item() to iterate over the elements.
2014-09-20Added const to Array.GetSize(), and to 3 Node methods.Gravatar Aaron Burghardt1-2/+2
2014-09-20Change Clone() to be const, which required constructors with const ↵Gravatar Aaron Burghardt1-2/+2
references and a const GetValue().
2014-05-20Rename "index" variable as it shadows global declaration on older systemsGravatar Martin Szulecki1-2/+2
2009-11-28Remove last includes of non-existing Utils.hGravatar Martin Szulecki1-1/+0
2009-11-11Fix removal of the Utils class.Gravatar Jonathan Beck1-3/+3
2009-11-10Remove wrongly exposed SetParent method.Gravatar Jonathan Beck1-2/+2
2009-11-04Add GetNodeIdex and GetNodeKey methods.Gravatar Jonathan Beck1-0/+8
2009-10-28Format sources to ANSI style using AStyle (astyle --style=ansi).Gravatar Jonathan Beck1-26/+26
2009-10-28Fix build for MSVC9.Gravatar Jonathan Beck1-2/+3
2009-10-26Add Set/Get Parent and a helper to create a Node from a plist_t.Gravatar Jonathan Beck1-99/+8
2009-10-16Fix Node lifecycle and change argument as reference to const reference.Gravatar Jonathan Beck1-18/+18
2009-10-15Fix various mistakes in C++ bindings.Gravatar Jonathan Beck1-3/+42
2009-10-13Add C++ binding.Gravatar Jonathan Beck1-0/+194