diff options
Diffstat (limited to 'include/plist/String.h')
| -rw-r--r-- | include/plist/String.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/include/plist/String.h b/include/plist/String.h index bd8680d..95f8dd1 100644 --- a/include/plist/String.h +++ b/include/plist/String.h @@ -19,8 +19,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef PLIST__STRING_H -#define PLIST__STRING_H +#ifndef PLIST_STRING_H +#define PLIST_STRING_H #include <plist/Node.h> #include <string> @@ -33,17 +33,20 @@ class String : public Node public : String(Node* parent = NULL); String(plist_t node, Node* parent = NULL); - String(String& s); - String& operator=(String& s); + String(const String& s); + String& operator=(const String& s); + String& operator=(const std::string& s); + String& operator=(const char* s); String(const std::string& s); + String(const char *s); virtual ~String(); - Node* Clone(); + Node* Clone() const; void SetValue(const std::string& s); - std::string GetValue(); + std::string GetValue() const; }; }; -#endif // PLIST__STRING_H +#endif // PLIST_STRING_H |
