summaryrefslogtreecommitdiffstats
path: root/src/String.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/String.cpp')
-rw-r--r--src/String.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/String.cpp b/src/String.cpp
index bf65605..09b47b5 100644
--- a/src/String.cpp
+++ b/src/String.cpp
@@ -32,7 +32,7 @@ String::String(plist_t node, Node* parent) : Node(node, parent)
{
}
-String::String(PList::String& s) : Node(PLIST_UINT)
+String::String(const PList::String& s) : Node(PLIST_UINT)
{
plist_set_string_val(_node, s.GetValue().c_str());
}
@@ -53,7 +53,7 @@ String::~String()
{
}
-Node* String::Clone()
+Node* String::Clone() const
{
return new String(*this);
}
@@ -63,7 +63,7 @@ void String::SetValue(const std::string& s)
plist_set_string_val(_node, s.c_str());
}
-std::string String::GetValue()
+std::string String::GetValue() const
{
char* s = NULL;
plist_get_string_val(_node, &s);