summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-05 11:06:18 +0200
committerNoel Grandin <noel@peralex.com>2013-11-11 12:58:12 +0200
commit0a9ef5a18e148c7a5c9a088e153a7873d1564841 (patch)
tree3c3bc21e7ee4f836a1d056695175e0b1a91eda26 /extensions
parent7944301424aac0943e4ecc0410f495b210ad3b79 (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')
-rw-r--r--extensions/source/propctrlr/MasterDetailLinkDialog.cxx10
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;