summaryrefslogtreecommitdiff
path: root/include/rtl/string.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-10-12 08:37:38 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-10-12 15:34:30 +0200
commit04fc7ed8c8e42a81dcc050fd52edb934ea12e735 (patch)
treef6dc7d09d2bd529d9ffd55c440571da47dcb004d /include/rtl/string.hxx
parentbc02e34235c6f61422f7ea46d4c166d8486e97fe (diff)
Use size_t for string lengths
Change-Id: I5c31197b3b61f630b41e9ee4df08aade21a71f68 Reviewed-on: https://gerrit.libreoffice.org/80708 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/rtl/string.hxx')
-rw-r--r--include/rtl/string.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/rtl/string.hxx b/include/rtl/string.hxx
index a497c951c3b0..1826f42f46ac 100644
--- a/include/rtl/string.hxx
+++ b/include/rtl/string.hxx
@@ -1879,7 +1879,7 @@ struct SAL_WARN_UNUSED OStringLiteral
template<>
struct ToStringHelper< OString >
{
- static int length( const OString& s ) { return s.getLength(); }
+ static std::size_t length( const OString& s ) { return s.getLength(); }
static char* addData( char* buffer, const OString& s ) { return addDataHelper( buffer, s.getStr(), s.getLength()); }
static const bool allowOStringConcat = true;
static const bool allowOUStringConcat = false;
@@ -1891,7 +1891,7 @@ struct ToStringHelper< OString >
template<>
struct ToStringHelper< OStringLiteral >
{
- static int length( const OStringLiteral& str ) { return str.size; }
+ static std::size_t length( const OStringLiteral& str ) { return str.size; }
static char* addData( char* buffer, const OStringLiteral& str ) { return addDataHelper( buffer, str.data, str.size ); }
static const bool allowOStringConcat = true;
static const bool allowOUStringConcat = false;