X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Floader.cpp;h=62c4b312d7f61efa1a56ae9d3e74d6dca6d515a0;hb=3b0d6fb8462bf87956099365d02ebb28435509cd;hp=de9323a36269ebc51656c75e1c771a1f169bb706;hpb=e2a4cefe59dd3e6e1b2fac2fb7232326bb2b0787;p=libs%2Fdatafile.git diff --git a/source/loader.cpp b/source/loader.cpp index de9323a..62c4b31 100644 --- a/source/loader.cpp +++ b/source/loader.cpp @@ -1,11 +1,4 @@ -/* $Id$ - -This file is part of libmspdatafile -Copyright © 2006-2008, 2010 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#include +#include #include "loader.h" #include "type.h" @@ -119,7 +112,7 @@ void Loader::load_sub_with(Loader &ldr) void Loader::add(const string &kwd, LoaderAction *act) { - ActionKey key(kwd, act->get_signature()); + ActionKey key(kwd, (act ? act->get_signature() : "*")); ActionMap::iterator i = actions.find(key); if(i!=actions.end()) {