summaryrefslogtreecommitdiff
path: root/include/rtl/string.hxx
diff options
context:
space:
mode:
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;