summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorljfa-ag <ljfa-ag@web.de>2015-07-23 14:04:01 +0200
committerljfa-ag <ljfa-ag@web.de>2015-07-23 14:04:01 +0200
commita4af97e198bda6e2a73976124b32d6fe2b812d3a (patch)
tree447999125ee3b49fa4cab1b914006111653728d3
parentbfea511ea876c5186d98e335c942d0e8389b7eb9 (diff)
downloadProject-Tick-a4af97e198bda6e2a73976124b32d6fe2b812d3a.tar.gz
Project-Tick-a4af97e198bda6e2a73976124b32d6fe2b812d3a.zip
Change constructors of tag_string
-rw-r--r--include/tag_string.h3
-rw-r--r--src/tag_string.cpp4
2 files changed, 4 insertions, 3 deletions
diff --git a/include/tag_string.h b/include/tag_string.h
index e28d18cd88..0cb057125f 100644
--- a/include/tag_string.h
+++ b/include/tag_string.h
@@ -34,8 +34,9 @@ public:
static constexpr tag_type type = tag_type::String;
//Constructors
+ tag_string() {}
tag_string(const std::string& str);
- tag_string(std::string&& str = "");
+ tag_string(std::string&& str) noexcept;
tag_string(const char* str);
//Getters
diff --git a/src/tag_string.cpp b/src/tag_string.cpp
index e4f714d0b3..58635d5e0a 100644
--- a/src/tag_string.cpp
+++ b/src/tag_string.cpp
@@ -26,12 +26,12 @@ tag_string::tag_string(const std::string& str):
value(str)
{}
-tag_string::tag_string(std::string&& str):
+tag_string::tag_string(std::string&& str) noexcept:
value(std::move(str))
{}
tag_string::tag_string(const char* str):
- value(std::string(str))
+ value(str)
{}
tag_string::operator std::string&()