diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-19 14:25:53 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-19 14:28:14 +0100 |
commit | a5bdf3c606b562a2af3dd4e4162b734abb1cb24c (patch) | |
tree | 553d2f9ba7465cb3a5869d374e6a09a304ddbe49 /include | |
parent | ffd00464f8ec2c796cdfead7e1e13ee715641e78 (diff) |
Make O[U]StringLiteral ctor explicit
Change-Id: Ide8b167d544447dd6844f5249fe6831ef4d2b4eb
Diffstat (limited to 'include')
-rw-r--r-- | include/rtl/string.hxx | 2 | ||||
-rw-r--r-- | include/rtl/ustring.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/rtl/string.hxx b/include/rtl/string.hxx index 35716250dfb6..773e54ec119c 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 2202415c6635..8aaab0aa8b3b 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; }; |