diff options
| author | Phil Nash | 2017-08-05 22:53:21 +0100 |
|---|---|---|
| committer | Phil Nash | 2017-08-05 22:53:21 +0100 |
| commit | b3b29f4b4c45752d95e2cae3a224d2f5844cb4e8 (patch) | |
| tree | 8d828f865617cb074d796e0243b1f3cf018fce74 /include/internal/catch_stringdata.cpp | |
| parent | cff3818e68158275d4d0353dc4bf359bbba1c57f (diff) | |
| download | catch3-b3b29f4b4c45752d95e2cae3a224d2f5844cb4e8.tar.gz | |
Use size_t for String size types
Diffstat (limited to 'include/internal/catch_stringdata.cpp')
| -rw-r--r-- | include/internal/catch_stringdata.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/internal/catch_stringdata.cpp b/include/internal/catch_stringdata.cpp index 434368de..5261739a 100644 --- a/include/internal/catch_stringdata.cpp +++ b/include/internal/catch_stringdata.cpp @@ -21,7 +21,7 @@ namespace Catch { auto StringData::create( StringRef const& stringRef ) -> StringData* { return create( stringRef, stringRef.size() ); } - auto StringData::create( StringRef const& stringRef, unsigned long capacity ) -> StringData* { + auto StringData::create( StringRef const& stringRef, size_t capacity ) -> StringData* { if( capacity == 0 ) { return getEmpty(); } @@ -37,7 +37,7 @@ namespace Catch { : m_refs( initialRef ), size( 0 ) {} - StringData::StringData( StringRef const& stringRef, unsigned long capacity ) + StringData::StringData( StringRef const& stringRef, size_t capacity ) : m_refs( 1 ), size( capacity) { |