Tests for BString convenience functions, plus a fix to BMessageField for a

bug revealed by those tests.  Gotta love those unit tests!


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3327 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
ejakowatz
2003-05-26 01:12:23 +00:00
parent 1a3b3db436
commit 18a8d114f5
4 changed files with 159 additions and 5 deletions
+7
View File
@@ -590,6 +590,13 @@ struct BMessageFieldGetDataPolicy<BDataBuffer>
{ return data->Buffer(); }
};
//------------------------------------------------------------------------------
template<>
struct BMessageFieldGetDataPolicy<BString>
{
inline static const void* GetData(const BString* data)
{ return data->String(); }
};
//------------------------------------------------------------------------------
} // namespace BPrivate