From 96710f8e466d44047ea4ac9cb8c70dc7664f5c73 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 18 Mar 2014 16:12:40 +0200 Subject: convert OUString::match to OUString::endsWith Convert code like: rTxt.match( "---", rTxt.getLength()-3 ) to: rTxt.endsWith( "---" ) Change-Id: Iada74c5e714f7234f25b326526843a36255d5599 --- svtools/source/config/colorcfg.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'svtools/source') diff --git a/svtools/source/config/colorcfg.cxx b/svtools/source/config/colorcfg.cxx index 5b4974573075..662733d66ad6 100644 --- a/svtools/source/config/colorcfg.cxx +++ b/svtools/source/config/colorcfg.cxx @@ -240,7 +240,7 @@ void ColorConfig_Impl::Load(const OUString& rScheme) if(nIndex >= aColors.getLength()) break; //test for visibility property - if(pColorNames[nIndex].match(m_sIsVisible, pColorNames[nIndex].getLength() - m_sIsVisible.getLength())) + if(pColorNames[nIndex].endsWith(m_sIsVisible)) m_aConfigValues[i / 2].bIsVisible = Any2Bool(pColors[nIndex++]); } // fdo#71511: check if we are running in a11y autodetect @@ -280,7 +280,7 @@ void ColorConfig_Impl::Commit() if(nIndex >= aColorNames.getLength()) break; //test for visibility property - if(pColorNames[nIndex].match(m_sIsVisible, pColorNames[nIndex].getLength() - m_sIsVisible.getLength())) + if(pColorNames[nIndex].endsWith(m_sIsVisible)) { pPropValues[nIndex].Name = pColorNames[nIndex]; pPropValues[nIndex].Value.setValue(&m_aConfigValues[i/2].bIsVisible, rBoolType); -- cgit