summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tag_string.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tag_string.cpp b/src/tag_string.cpp
index 6bd1465e84..e4f714d0b3 100644
--- a/src/tag_string.cpp
+++ b/src/tag_string.cpp
@@ -30,6 +30,10 @@ tag_string::tag_string(std::string&& str):
value(std::move(str))
{}
+tag_string::tag_string(const char* str):
+ value(std::string(str))
+{}
+
tag_string::operator std::string&()
{
return value;
@@ -57,6 +61,12 @@ tag_string& tag_string::operator=(std::string&& str)
return *this;
}
+tag_string& tag_string::operator=(const char* str)
+{
+ value = std::string(str);
+ return *this;
+}
+
void tag_string::set(const std::string& str)
{
value = str;