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:
parent
aaea96798d
commit
f8953fc789
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue