summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-12-12 16:35:53 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-12-12 16:36:36 +0100
commit4bbce9eb4921dacf5cf2deed416a00cd39ae8a32 (patch)
treed4b1f5ef94436691d0c0bdb502556d79fa3370b7
parent2b530503dbee0cd026da9ce6552beb632a82238a (diff)
make exception save actual tag (nw)
-rw-r--r--src/lib/util/tagmap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/util/tagmap.h b/src/lib/util/tagmap.h
index aa456c8ff5e..4d15cbba193 100644
--- a/src/lib/util/tagmap.h
+++ b/src/lib/util/tagmap.h
@@ -35,9 +35,9 @@ class add_exception
{
public:
add_exception(const char *tag) : m_tag(tag) { }
- const char *tag() const { return m_tag; }
+ const char *tag() const { return m_tag.c_str(); }
private:
- const char *m_tag;
+ std::string m_tag;
};
// a tagged_list is a class that maintains a list of objects that can be quickly looked up by tag