From: g0dil Date: Mon, 20 Oct 2008 19:01:36 +0000 (+0000) Subject: Scheduler: Fix stupid typing error X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=635a822c0f03d4a9107672f2d5becb4f3a195a83;p=senf.git Scheduler: Fix stupid typing error git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@938 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Scheduler/ReadHelper.cti b/Scheduler/ReadHelper.cti index d491f64..3af87a6 100644 --- a/Scheduler/ReadHelper.cti +++ b/Scheduler/ReadHelper.cti @@ -56,7 +56,7 @@ prefix_ Handle senf::ReadHelper::handle() } template -prefix_ unsigned senf::ReadHelper::maxSize() +prefix_ std::string::size_type senf::ReadHelper::maxSize() const { return maxSize_; diff --git a/Scheduler/ReadHelper.hh b/Scheduler/ReadHelper.hh index 0b43431..976c4ae 100644 --- a/Scheduler/ReadHelper.hh +++ b/Scheduler/ReadHelper.hh @@ -113,7 +113,7 @@ namespace senf { /////////////////////////////////////////////////////////////////////////// Handle handle() const; ///< Access the handle object - unsigned maxSize() const; ///< Return maximum number of bytes to be read + std::string::size_type maxSize() const; ///< Return maximum number of bytes to be read std::string const & data() const; ///< return data read std::string const & tail() const; ///< return data read but not matched by the predicate @@ -129,7 +129,8 @@ namespace senf { private: struct InternalPredicate; - ReadHelper(Handle handle, unsigned maxSize, InternalPredicate * predicate, Callback cb); + ReadHelper(Handle handle, std::string::size_teyp maxSize, + InternalPredicate * predicate, Callback cb); static void dispatchProcess(ptr helper, Handle handle, int event); void process(Handle handle, int event);