X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Foutput.cpp;h=46d270ad7263ae5d88e656918bfe02b7528e09e8;hb=8a4fca97e2bf3a3934399123e8f7cbd591912f83;hp=5ee19115a5b0eedad79ee18ccbdcb9b9adb7b254;hpb=daca21051927eabee098e422fe5a0990acacfb96;p=libs%2Fdatafile.git diff --git a/source/output.cpp b/source/output.cpp index 5ee1911..46d270a 100644 --- a/source/output.cpp +++ b/source/output.cpp @@ -7,8 +7,7 @@ namespace Msp { namespace DataFile { Output::Output(IO::Base &o): - out(&o), - compressed(nullptr) + out(&o) { } Output::~Output() @@ -22,12 +21,12 @@ void Output::set_compressed() out = compressed; } -unsigned Output::put(char c) +size_t Output::put(char c) { return out->put(c); } -unsigned Output::write(const string &s) +size_t Output::write(const string &s) { return out->write(s); }