summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/Registry.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/Registry.cpp b/src/core/Registry.cpp
index b714241..9427aed 100644
--- a/src/core/Registry.cpp
+++ b/src/core/Registry.cpp
@@ -31,10 +31,10 @@ using namespace parser;
void Registry::registerParser(parser::Parser &parser)
{
parsers.push_back(&parser);
- for (const auto &mime : parser->mimetypes()) {
+ for (const auto &mime : parser.mimetypes()) {
//TODO: This does not allow for multiple parsers with the same mimetype.
// Is that how its supposed to be?
- parserMimetypes.insert(std::make_pair(mime, parser));
+ parserMimetypes.insert(std::make_pair(mime, &parser));
}
}