diff options
author | Eike Rathke <erack@redhat.com> | 2016-06-14 13:28:47 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-06-14 13:33:35 +0200 |
commit | 478613c550236d19b8254c49e5886dca1f0b8aac (patch) | |
tree | 04995256bc40fb31a03682818acdc280e5d3e230 /include/svl/sharedstring.hxx | |
parent | c44d5589dfc4312ab98408dec68c8577240dd7d3 (diff) |
explicit svl::SharedString(const OUString&) ctor
... to prevent accidental surprises. Not interned shared strings
constructed from OUString have mpDataIgnoreCase=nullptr so can't be used
for case insensitive comparison.
Change-Id: I03323354298a73e93b18d2796ec447c072fdefa5
Diffstat (limited to 'include/svl/sharedstring.hxx')
-rw-r--r-- | include/svl/sharedstring.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/svl/sharedstring.hxx b/include/svl/sharedstring.hxx index fe9e851f045d..1693c639f566 100644 --- a/include/svl/sharedstring.hxx +++ b/include/svl/sharedstring.hxx @@ -25,7 +25,7 @@ public: SharedString(); SharedString( rtl_uString* pData, rtl_uString* pDataIgnoreCase ); - SharedString( const OUString& rStr ); + explicit SharedString( const OUString& rStr ); SharedString( const SharedString& r ); ~SharedString(); |