From 0f5e9170248df98ef7c7c6d475ff7d2bb9fa2214 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 17 Dec 2014 15:47:01 +0100 Subject: Introduce rtl::OUStringLiteral1 ...to use single ASCII character literals "more directly" in the OUString API (instead of having to go via an intermediary OUString ctor call). Especially useful for character literals that are defined as const variables or via macros ("direct" uses of character literals in the OUString API can often simply be replaced with single-character string literals, for improved readability). (The functions overloaded for OUStringLiteral1 are those that are actually used by the existing LO code; more could potentially be added. The asymmetry in the operator ==/!= parameter types is by design, though---writing code like 'x' == s is an abomination that shall not be abetted.) Change-Id: Ic5264714be7439eed56b5dfca6ccaee277306f1f --- unotools/source/config/optionsdlg.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'unotools/source') diff --git a/unotools/source/config/optionsdlg.cxx b/unotools/source/config/optionsdlg.cxx index c318e6f1c70e..afe61b806a8b 100644 --- a/unotools/source/config/optionsdlg.cxx +++ b/unotools/source/config/optionsdlg.cxx @@ -162,15 +162,15 @@ void SvtOptionsDlgOptions_Impl::ReadNode( const OUString& _rNode, NodeType _eTyp OUString getGroupPath( const OUString& _rGroup ) { - return OUString( ROOT_NODE + OUString('/') + _rGroup + OUString('/') ); + return OUString( ROOT_NODE + "/" + _rGroup + "/" ); } OUString getPagePath( const OUString& _rPage ) { - return OUString( PAGES_NODE + OUString('/') + _rPage + OUString('/') ); + return OUString( PAGES_NODE + "/" + _rPage + "/" ); } OUString getOptionPath( const OUString& _rOption ) { - return OUString( OPTIONS_NODE + OUString('/') + _rOption + OUString('/') ); + return OUString( OPTIONS_NODE + "/" + _rOption + "/" ); } bool SvtOptionsDlgOptions_Impl::IsHidden( const OUString& _rPath ) const -- cgit