summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-03-20 12:54:59 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-03-20 13:05:34 +0100
commitdc06576d8809760b79f771831bed3122878e0505 (patch)
tree1b8ee75ec89c0a45e53180d408025847b3a96857 /sw
parentd11c93b025c87dce5ceabc688419739e35baa535 (diff)
TODO: Unclear whether comparisons against "Ruby" shall use == or startsWith
...as the use of compareToAscii(RTL_CONSTASCII_STRINGPARAM(...)) would imply. Change-Id: I46f2f0c5e66e5ced4dfea00c2a7e87a316748a0b
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unoport.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unoport.cxx b/sw/source/core/unocore/unoport.cxx
index 4d66549a8670..89f40f6daa68 100644
--- a/sw/source/core/unocore/unoport.cxx
+++ b/sw/source/core/unocore/unoport.cxx
@@ -763,7 +763,7 @@ beans::PropertyState SwXTextPortion::getPropertyState(const OUString& rPropertyN
throw uno::RuntimeException();
if (GetTextPortionType() == PORTION_RUBY_START &&
- !rPropertyName.compareToAscii( RTL_CONSTASCII_STRINGPARAM("Ruby") ))
+ rPropertyName.startsWith("Ruby")) //TODO: startsWith or ==?
{
eRet = beans::PropertyState_DIRECT_VALUE;
}
@@ -794,7 +794,7 @@ uno::Sequence< beans::PropertyState > SwXTextPortion::getPropertyStates(
beans::PropertyState* pStates = aRet.getArray();
for(sal_Int32 nProp = 0; nProp < rPropertyNames.getLength();nProp++)
{
- if(!pNames[nProp].compareToAscii( RTL_CONSTASCII_STRINGPARAM("Ruby") ))
+ if (pNames[nProp].startsWith("Ruby")) //TODO: startsWith or ==?
pStates[nProp] = beans::PropertyState_DIRECT_VALUE;
}
}