X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fparsermode.h;h=339bdb78e4bc66536dab675a0517fc748a9a5824;hb=b34b46788d69853eabdbbd9e71ca82f2f5c09df8;hp=ae407566a9d0442a96a699cbfde1b1387c1add91;hpb=505042fcda16151f5ace243c243d34af3efcf677;p=libs%2Fdatafile.git diff --git a/source/parsermode.h b/source/parsermode.h index ae40756..339bdb7 100644 --- a/source/parsermode.h +++ b/source/parsermode.h @@ -22,13 +22,13 @@ class ParserMode { protected: Input ∈ - std::string src; + const std::string &src; ParserMode(Input &i, const std::string &s): in(i), src(s) { } public: virtual ~ParserMode() { } - virtual Statement parse() =0; + virtual Statement parse() = 0; }; } // namespace DataFile