diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-08 21:57:45 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-12 17:01:14 +0200 |
commit | bd77596dd8e3f6d3660ce5b096d8160502e13a70 (patch) | |
tree | a4eeefffc56e6750ecfbebb3539eefd93d5cda8c /svx | |
parent | 8b075d020ce25cff28a12fabad69d8677f7b8f2d (diff) |
replace createFromAscii with OUString literals in OConfigurationValueContainer
Change-Id: Ib94018bfc542c91c01894006076eb16023d104ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167545
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/form/fmsrccfg.cxx | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/svx/source/form/fmsrccfg.cxx b/svx/source/form/fmsrccfg.cxx index 499d2cb16760..610eb58ae455 100644 --- a/svx/source/form/fmsrccfg.cxx +++ b/svx/source/form/fmsrccfg.cxx @@ -149,46 +149,46 @@ namespace svxform #define TA( c ) &c, cppu::UnoType<decltype(c)>::get() FmSearchConfigItem::FmSearchConfigItem() - :OConfigurationValueContainer( ::comphelper::getProcessComponentContext(), m_aMutex, "/org.openoffice.Office.DataAccess/FormSearchOptions", 2 ) + :OConfigurationValueContainer( ::comphelper::getProcessComponentContext(), m_aMutex, u"/org.openoffice.Office.DataAccess/FormSearchOptions"_ustr, 2 ) { // register our members so the data exchange with the node values is done automatically - registerExchangeLocation( "SearchHistory", TA( aHistory ) ); - registerExchangeLocation( "LevenshteinOther", TA( nLevOther ) ); - registerExchangeLocation( "LevenshteinShorter", TA( nLevShorter ) ); - registerExchangeLocation( "LevenshteinLonger", TA( nLevLonger ) ); - registerExchangeLocation( "IsLevenshteinRelaxed", TA( bLevRelaxed ) ); - registerExchangeLocation( "IsSearchAllFields", TA( bAllFields ) ); - registerExchangeLocation( "IsUseFormatter", TA( bUseFormatter ) ); - registerExchangeLocation( "IsBackwards", TA( bBackwards ) ); - registerExchangeLocation( "IsWildcardSearch", TA( bWildcard ) ); - registerExchangeLocation( "IsUseRegularExpression", TA( bRegular ) ); - registerExchangeLocation( "IsSimilaritySearch", TA( bApproxSearch ) ); - registerExchangeLocation( "IsUseAsianOptions", TA( bSoundsLikeCJK ) ); + registerExchangeLocation( u"SearchHistory"_ustr, TA( aHistory ) ); + registerExchangeLocation( u"LevenshteinOther"_ustr, TA( nLevOther ) ); + registerExchangeLocation( u"LevenshteinShorter"_ustr, TA( nLevShorter ) ); + registerExchangeLocation( u"LevenshteinLonger"_ustr, TA( nLevLonger ) ); + registerExchangeLocation( u"IsLevenshteinRelaxed"_ustr, TA( bLevRelaxed ) ); + registerExchangeLocation( u"IsSearchAllFields"_ustr, TA( bAllFields ) ); + registerExchangeLocation( u"IsUseFormatter"_ustr, TA( bUseFormatter ) ); + registerExchangeLocation( u"IsBackwards"_ustr, TA( bBackwards ) ); + registerExchangeLocation( u"IsWildcardSearch"_ustr, TA( bWildcard ) ); + registerExchangeLocation( u"IsUseRegularExpression"_ustr, TA( bRegular ) ); + registerExchangeLocation( u"IsSimilaritySearch"_ustr, TA( bApproxSearch ) ); + registerExchangeLocation( u"IsUseAsianOptions"_ustr, TA( bSoundsLikeCJK ) ); // the properties which need to be translated - registerExchangeLocation( "SearchType", TA( m_sSearchForType ) ); - registerExchangeLocation( "SearchPosition", TA( m_sSearchPosition ) ); - - registerExchangeLocation( "IsMatchCase", TA( m_bIsMatchCase ) ); - registerExchangeLocation( "Japanese/IsMatchFullHalfWidthForms", TA( m_bIsMatchFullHalfWidthForms ) ); - registerExchangeLocation( "Japanese/IsMatchHiraganaKatakana", TA( m_bIsMatchHiraganaKatakana ) ); - registerExchangeLocation( "Japanese/IsMatchContractions", TA( m_bIsMatchContractions ) ); - registerExchangeLocation( "Japanese/IsMatchMinusDashCho-on", TA( m_bIsMatchMinusDashCho_on ) ); - registerExchangeLocation( "Japanese/IsMatchRepeatCharMarks", TA( m_bIsMatchRepeatCharMarks ) ); - registerExchangeLocation( "Japanese/IsMatchVariantFormKanji", TA( m_bIsMatchVariantFormKanji ) ); - registerExchangeLocation( "Japanese/IsMatchOldKanaForms", TA( m_bIsMatchOldKanaForms ) ); - registerExchangeLocation( "Japanese/IsMatch_DiZi_DuZu", TA( m_bIsMatch_DiZi_DuZu ) ); - registerExchangeLocation( "Japanese/IsMatch_BaVa_HaFa", TA( m_bIsMatch_BaVa_HaFa ) ); - registerExchangeLocation( "Japanese/IsMatch_TsiThiChi_DhiZi", TA( m_bIsMatch_TsiThiChi_DhiZi ) ); - registerExchangeLocation( "Japanese/IsMatch_HyuIyu_ByuVyu", TA( m_bIsMatch_HyuIyu_ByuVyu ) ); - registerExchangeLocation( "Japanese/IsMatch_SeShe_ZeJe", TA( m_bIsMatch_SeShe_ZeJe ) ); - registerExchangeLocation( "Japanese/IsMatch_IaIya", TA( m_bIsMatch_IaIya ) ); - registerExchangeLocation( "Japanese/IsMatch_KiKu", TA( m_bIsMatch_KiKu ) ); - registerExchangeLocation( "Japanese/IsIgnorePunctuation", TA( m_bIsIgnorePunctuation ) ); - registerExchangeLocation( "Japanese/IsIgnoreWhitespace", TA( m_bIsIgnoreWhitespace ) ); - registerExchangeLocation( "Japanese/IsIgnoreProlongedSoundMark",TA( m_bIsIgnoreProlongedSoundMark ) ); - registerExchangeLocation( "Japanese/IsIgnoreMiddleDot", TA( m_bIsIgnoreMiddleDot ) ); + registerExchangeLocation( u"SearchType"_ustr, TA( m_sSearchForType ) ); + registerExchangeLocation( u"SearchPosition"_ustr, TA( m_sSearchPosition ) ); + + registerExchangeLocation( u"IsMatchCase"_ustr, TA( m_bIsMatchCase ) ); + registerExchangeLocation( u"Japanese/IsMatchFullHalfWidthForms"_ustr, TA( m_bIsMatchFullHalfWidthForms ) ); + registerExchangeLocation( u"Japanese/IsMatchHiraganaKatakana"_ustr, TA( m_bIsMatchHiraganaKatakana ) ); + registerExchangeLocation( u"Japanese/IsMatchContractions"_ustr, TA( m_bIsMatchContractions ) ); + registerExchangeLocation( u"Japanese/IsMatchMinusDashCho-on"_ustr, TA( m_bIsMatchMinusDashCho_on ) ); + registerExchangeLocation( u"Japanese/IsMatchRepeatCharMarks"_ustr, TA( m_bIsMatchRepeatCharMarks ) ); + registerExchangeLocation( u"Japanese/IsMatchVariantFormKanji"_ustr, TA( m_bIsMatchVariantFormKanji ) ); + registerExchangeLocation( u"Japanese/IsMatchOldKanaForms"_ustr, TA( m_bIsMatchOldKanaForms ) ); + registerExchangeLocation( u"Japanese/IsMatch_DiZi_DuZu"_ustr, TA( m_bIsMatch_DiZi_DuZu ) ); + registerExchangeLocation( u"Japanese/IsMatch_BaVa_HaFa"_ustr, TA( m_bIsMatch_BaVa_HaFa ) ); + registerExchangeLocation( u"Japanese/IsMatch_TsiThiChi_DhiZi"_ustr, TA( m_bIsMatch_TsiThiChi_DhiZi ) ); + registerExchangeLocation( u"Japanese/IsMatch_HyuIyu_ByuVyu"_ustr, TA( m_bIsMatch_HyuIyu_ByuVyu ) ); + registerExchangeLocation( u"Japanese/IsMatch_SeShe_ZeJe"_ustr, TA( m_bIsMatch_SeShe_ZeJe ) ); + registerExchangeLocation( u"Japanese/IsMatch_IaIya"_ustr, TA( m_bIsMatch_IaIya ) ); + registerExchangeLocation( u"Japanese/IsMatch_KiKu"_ustr, TA( m_bIsMatch_KiKu ) ); + registerExchangeLocation( u"Japanese/IsIgnorePunctuation"_ustr, TA( m_bIsIgnorePunctuation ) ); + registerExchangeLocation( u"Japanese/IsIgnoreWhitespace"_ustr, TA( m_bIsIgnoreWhitespace ) ); + registerExchangeLocation( u"Japanese/IsIgnoreProlongedSoundMark"_ustr,TA( m_bIsIgnoreProlongedSoundMark ) ); + registerExchangeLocation( u"Japanese/IsIgnoreMiddleDot"_ustr, TA( m_bIsIgnoreMiddleDot ) ); read( ); } |