Allow that const data can be supplied to TChecksumHelper::Cache().

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11114 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2005-01-29 00:17:24 +00:00
parent aaea96798d
commit f8953fc789
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ class TChecksumHelper
public:
TChecksumHelper(uchar* buffer) : fBuffer(buffer), fBufPtr(buffer) {;}
template<class T> inline void Cache(T& data)
template<class T> inline void Cache(const T& data)
{
*((T*)fBufPtr) = data;
fBufPtr += sizeof (T);