Make O[U]StringLiteral ctor explicit
Change-Id: Ide8b167d544447dd6844f5249fe6831ef4d2b4eb
diff --git a/include/rtl/string.hxx b/include/rtl/string.hxx
index 3571625..773e54e 100644
--- a/include/rtl/string.hxx
+++ b/include/rtl/string.hxx
@@ -1646,7 +1646,7 @@ This class is not part of public API and is meant to be used only in LibreOffice
struct SAL_WARN_UNUSED OStringLiteral
{
template< int N >
OStringLiteral( const char (&str)[ N ] ) : size( N - 1 ), data( str ) { assert( strlen( str ) == N - 1 ); }
explicit OStringLiteral( const char (&str)[ N ] ) : size( N - 1 ), data( str ) { assert( strlen( str ) == N - 1 ); }
int size;
const char* data;
};
diff --git a/include/rtl/ustring.hxx b/include/rtl/ustring.hxx
index 2202415..8aaab0a 100644
--- a/include/rtl/ustring.hxx
+++ b/include/rtl/ustring.hxx
@@ -67,7 +67,7 @@ This class is not part of public API and is meant to be used only in LibreOffice
struct SAL_WARN_UNUSED OUStringLiteral
{
template< int N >
OUStringLiteral( const char (&str)[ N ] ) : size( N - 1 ), data( str ) { assert( strlen( str ) == N - 1 ); }
explicit OUStringLiteral( const char (&str)[ N ] ) : size( N - 1 ), data( str ) { assert( strlen( str ) == N - 1 ); }
int size;
const char* data;
};