Skip to content
Snippets Groups Projects
Commit 693399c7 authored by ilor's avatar ilor
Browse files

make tagset's const char* ctor a static creation function

parent ea78e2a2
Branches
No related tags found
No related merge requests found
......@@ -73,12 +73,11 @@ Tagset::Tagset()
{
}
Tagset::Tagset(const char *s)
: id_(++next_id_)
Tagset Tagset::from_data(const char *s)
{
std::stringstream ss;
ss << s;
*this = TagsetParser::load_ini(ss);
return TagsetParser::load_ini(ss);
}
std::string Tagset::id_string() const
......
......@@ -99,10 +99,10 @@ public:
Tagset();
/**
* Tagset convenience constructor, parse a string as if it were the
* Tagset convenience creation function, parse a string as if it were the
* contents of a tagset ini file
*/
explicit Tagset(const char*);
static Tagset from_data(const char*);
/**
* Tag parsing -- functional version, whole tag string.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment