1. 07 Jul, 2019 1 commit
    • Alexander Böhn's avatar
      Add PList::Dictionary::const_iterator · 7d6b42c9
      Alexander Böhn authored
      ... and const versions of three member functions, each returning const_iterator:
      * Plist::Dictionary::Begin()
      * PList::Dictionary::End()
      * PList::Dictionary::Find()
      7d6b42c9
  2. 26 Jun, 2019 1 commit
    • tihmstar's avatar
      Fixed bug in dictionary_fill · ec957fb8
      tihmstar authored
      Bug: when creating a new Dictionary object (for example through PList::Node::FromPlist(plist_t node) ), the dictionary_fill function is called from Dictionary() constructor in line 50. It seems that the intended way of calling dictionary_fill() is to pass the _map object by reference, however it is actually passed by value. Thus the changes to the map object made by dictionary_fill() are discarded when the function returns.
      
      Fix: pass _map by reference to keep the changes
      ec957fb8
  3. 21 Jan, 2019 1 commit
  4. 19 Sep, 2014 1 commit
  5. 19 Mar, 2014 1 commit
  6. 29 Oct, 2013 1 commit
  7. 12 Feb, 2011 1 commit
    • Christophe Fergeau's avatar
      Fix Dictionary copy constructor · be225ca1
      Christophe Fergeau authored
      While iterating over all the keys stored in the source Dictionary
      to copy them to create the copied Dictonary, the name of the key
      being copied was only set to a non-NULL value for the first key
      we copy. This was then leading to an assertion when trying to
      create a std::string from a NULL pointer. Simple test-case:
      
      int main()
      {
      	PList::Dictionary a;
      	PList::String b("Hello");
      	PList::String c("Hi!");
      	PList::Dictionary d;
      
      	a.Insert("Key", &b);
      	a.Insert("Another Key", &c);
      	std::cout << a.ToXml() << std::endl;
      
      	d.Insert("dictionary", &a); //CRAAAAAAAAASH!
      	std::cout << d.ToXml() << std::endl;
      	return 0;
      }
      /* Output:
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
      <plist version="1.0">
      <dict>
      	<key>Key</key>
      	<string>Hello</string>
      	<key>Another Key</key>
      	<string>Hi!</string>
      </dict>
      </plist>
      
      terminate called after throwing an instance of 'std::logic_error'
        what():  basic_string::_S_construct NULL not valid
      */
      Signed-off-by: 's avatarMartin Szulecki <opensuse@sukimashita.com>
      be225ca1
  8. 28 Nov, 2009 1 commit
  9. 11 Nov, 2009 1 commit
  10. 10 Nov, 2009 2 commits
  11. 04 Nov, 2009 1 commit
  12. 28 Oct, 2009 2 commits
  13. 26 Oct, 2009 1 commit
  14. 18 Oct, 2009 1 commit
  15. 16 Oct, 2009 2 commits
  16. 15 Oct, 2009 1 commit
  17. 13 Oct, 2009 1 commit