X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Scheduler%2FWriteHelper.ct;h=898a5497fd0c5e948640b4184b34d240ac615ecf;hb=c7512677a51c8ba551ab23611d6e99bdc7a7fdfa;hp=f573f95d6fae3640bf78a63257089c83f6a0d0f4;hpb=31d85cd6b8e03c5ecc924ca8892906be1bab702f;p=senf.git diff --git a/Scheduler/WriteHelper.ct b/Scheduler/WriteHelper.ct index f573f95..898a549 100644 --- a/Scheduler/WriteHelper.ct +++ b/Scheduler/WriteHelper.ct @@ -25,14 +25,14 @@ // Custom includes #include -#include "Utils/Exception.hh" +#include "../Utils/Exception.hh" #include "Scheduler.hh" #define prefix_ ///////////////////////////////ct.p//////////////////////////////////////// template -prefix_ senf::WriteHelper::WriteHelper(Handle handle, std::string data, +prefix_ senf::WriteHelper::WriteHelper(Handle handle, std::string const & data, Callback callback) : handle_(handle), data_(data), callback_(callback), offset_(data_.begin()), errno_(0) @@ -87,7 +87,7 @@ prefix_ void senf::WriteHelper::process(Handle handle, } } catch (senf::SystemException const & ex) { - errno_ = ex.err; + errno_ = ex.code(); done(); return; } @@ -113,4 +113,5 @@ prefix_ void senf::WriteHelper::done() // indent-tabs-mode: nil // ispell-local-dictionary: "american" // compile-command: "scons -u test" +// comment-column: 40 // End: