diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-05 11:06:18 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-11 12:58:12 +0200 |
commit | 0a9ef5a18e148c7a5c9a088e153a7873d1564841 (patch) | |
tree | 3c3bc21e7ee4f836a1d056695175e0b1a91eda26 /extensions/source | |
parent | 7944301424aac0943e4ecc0410f495b210ad3b79 (diff) |
convert OUString 0==compareToAscii to equalsAscii
Convert code like:
0 == aStr.compareToAscii("XXX")
to
aStr.equalsAscii("XXX")
which is both clearer and faster.
Change-Id: I2e906d7d38494db38eb292702fadb781b1251e07
Diffstat (limited to 'extensions/source')
-rw-r--r-- | extensions/source/propctrlr/MasterDetailLinkDialog.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/extensions/source/propctrlr/MasterDetailLinkDialog.cxx b/extensions/source/propctrlr/MasterDetailLinkDialog.cxx index 712f41d4a48c..a664a61f4405 100644 --- a/extensions/source/propctrlr/MasterDetailLinkDialog.cxx +++ b/extensions/source/propctrlr/MasterDetailLinkDialog.cxx @@ -114,27 +114,27 @@ namespace pcr PropertyValue aProperty; if (_rValue >>= aProperty) { - if (0 == aProperty.Name.compareToAscii("Detail")) + if (aProperty.Name.equalsAscii("Detail")) { OSL_VERIFY( aProperty.Value >>= m_xDetail ); return; } - else if (0 == aProperty.Name.compareToAscii("Master")) + else if (aProperty.Name.equalsAscii("Master")) { OSL_VERIFY( aProperty.Value >>= m_xMaster ); return; } - else if (0 == aProperty.Name.compareToAscii("Explanation")) + else if (aProperty.Name.equalsAscii("Explanation")) { OSL_VERIFY( aProperty.Value >>= m_sExplanation ); return; } - else if (0 == aProperty.Name.compareToAscii("DetailLabel")) + else if (aProperty.Name.equalsAscii("DetailLabel")) { OSL_VERIFY( aProperty.Value >>= m_sDetailLabel ); return; } - else if (0 == aProperty.Name.compareToAscii("MasterLabel")) + else if (aProperty.Name.equalsAscii("MasterLabel")) { OSL_VERIFY( aProperty.Value >>= m_sMasterLabel ); return; |