summaryrefslogtreecommitdiff
path: root/include/rtl/ustring.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/rtl/ustring.hxx')
-rw-r--r--include/rtl/ustring.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/rtl/ustring.hxx b/include/rtl/ustring.hxx
index 573ed70e6a3c..a7ede5f9a32a 100644
--- a/include/rtl/ustring.hxx
+++ b/include/rtl/ustring.hxx
@@ -3650,7 +3650,7 @@ void operator !=(std::nullptr_t, OUString const &) = delete;
template<>
struct ToStringHelper< OUString >
{
- static int length( const OUString& s ) { return s.getLength(); }
+ static std::size_t length( const OUString& s ) { return s.getLength(); }
static sal_Unicode* addData( sal_Unicode* buffer, const OUString& s ) { return addDataHelper( buffer, s.getStr(), s.getLength()); }
static const bool allowOStringConcat = false;
static const bool allowOUStringConcat = true;
@@ -3662,7 +3662,7 @@ struct ToStringHelper< OUString >
template<>
struct ToStringHelper< OUStringLiteral >
{
- static int length( const OUStringLiteral& str ) { return str.size; }
+ static std::size_t length( const OUStringLiteral& str ) { return str.size; }
static sal_Unicode* addData( sal_Unicode* buffer, const OUStringLiteral& str ) { return addDataLiteral( buffer, str.data, str.size ); }
static const bool allowOStringConcat = false;
static const bool allowOUStringConcat = true;