diff options
author | Noel Grandin <noel@peralex.com> | 2014-03-18 16:12:40 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-03-19 08:55:21 +0200 |
commit | 96710f8e466d44047ea4ac9cb8c70dc7664f5c73 (patch) | |
tree | 8c3eb8c7aaf1eec6c6248502e1fc8b43f9dc18a9 /svtools/source | |
parent | e80b9f344aeb88bdbb42d846c0a094d86ee327dc (diff) |
convert OUString::match to OUString::endsWith
Convert code like:
rTxt.match( "---", rTxt.getLength()-3 )
to:
rTxt.endsWith( "---" )
Change-Id: Iada74c5e714f7234f25b326526843a36255d5599
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/config/colorcfg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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); |