]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/loader.h
Add missing virtual destructor to Collection::ItemKeywordBase
[libs/datafile.git] / source / loader.h
index acc84fe024dd080d702bb4d4b3af52ce4ff19e12..749c1047cd1a762084adb91d37956671fe8d6745 100644 (file)
@@ -196,7 +196,7 @@ public:
        {
                if(st.args.size()!=1) throw TypeError(st.get_location()+": Wrong number of arguments");
                typename L::Loader &ldr=dynamic_cast<typename L::Loader &>(l);
-               ldr.get_object().*ptr0=&ldr.get_collection().template get<T0>(st.args[0].get<std::string>());
+               ldr.get_object().*ptr0=ldr.get_collection().template get<T0>(st.args[0].get<std::string>());
        }
 private:
        Pointer0Type ptr0;
@@ -343,6 +343,8 @@ protected:
                        throw InvalidState("get_source called without current statement");
                return cur_st->source;
        }
+
+       virtual void finish() { }
 private:
        typedef std::map<std::string, LoaderAction *> ActionMap;