diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2008-12-03T17·30+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2008-12-03T17·30+0000 |
commit | 5eaf644c99c78ed89b2cab1d10d630435fd55d28 (patch) | |
tree | 8c30850890c39ad00b2f3aac825ddd6dd210ec08 /src/libutil/serialise.hh | |
parent | cdee3174190c237bbf36955a5faa3896f564b7a1 (diff) |
* A simple API for parsing NAR archives.
Diffstat (limited to 'src/libutil/serialise.hh')
-rw-r--r-- | src/libutil/serialise.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/serialise.hh b/src/libutil/serialise.hh index 75d17bc60502..5746c3c2fcf9 100644 --- a/src/libutil/serialise.hh +++ b/src/libutil/serialise.hh @@ -80,9 +80,9 @@ struct StringSink : Sink /* A source that reads data from a string. */ struct StringSource : Source { - string & s; + const string & s; unsigned int pos; - StringSource(string & _s) : s(_s), pos(0) { } + StringSource(const string & _s) : s(_s), pos(0) { } virtual void operator () (unsigned char * data, unsigned int len) { s.copy((char *) data, len, pos); |