src/core/object.h
changeset 2572 5f3bdaf2a77c
parent 2570 15d5421022a1
child 2573 b45af20ffe2b
--- a/src/core/object.h	Sun Mar 09 21:07:35 2008 +0100
+++ b/src/core/object.h	Sun Mar 09 21:28:27 2008 +0100
@@ -384,9 +384,11 @@
    * \param name the name of the attribute to set
    * \param value the name of the attribute to set
    *
-   * Set a single attribute.
+   * Set a single attribute. This cannot fail: if the input is invalid,
+   * it will crash immediately.
    */
-  bool SetAttribute (std::string name, Attribute value);
+  void SetAttribute (std::string name, Attribute value);
+  bool SetAttributeFailSafe (std::string name, Attribute value);
   /**
    * \param name the name of the attribute to read
    * \param value a reference to the string where the value of the