summaryrefslogtreecommitdiff
path: root/winaccessibility
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-11 11:04:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-11 14:13:03 +0200
commit7de833a626cea8cd741ba1d971fea6f0c3a2660b (patch)
tree2750dbed735b4df7a9e82add532df49049cc52e8 /winaccessibility
parent6f9f9491bdef676f969898bd653db9905d14f5e8 (diff)
simplify calls OUString::copy in foo.copy(x, foo.getLength() - x)
Change-Id: I20318c77dcc3bc2a64336541ef5a3f412bfd9483 Reviewed-on: https://gerrit.libreoffice.org/39803 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'winaccessibility')
-rw-r--r--winaccessibility/source/UAccCOM/AccEditableText.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/winaccessibility/source/UAccCOM/AccEditableText.cxx b/winaccessibility/source/UAccCOM/AccEditableText.cxx
index 5e63597bf937..14eaeea32f61 100644
--- a/winaccessibility/source/UAccCOM/AccEditableText.cxx
+++ b/winaccessibility/source/UAccCOM/AccEditableText.cxx
@@ -244,7 +244,7 @@ STDMETHODIMP CAccEditableText::setAttributes(long startOffset, long endOffset, B
if(nPos > -1)
{
::rtl::OUString attrName = attr.copy(0, nPos);
- ::rtl::OUString attrValue = attr.copy(nPos + 1, attr.getLength() - nPos - 1);
+ ::rtl::OUString attrValue = attr.copy(nPos + 1);
beanSeq[i].Name = attrName;
get_AnyFromOLECHAR(attrName, attrValue, beanSeq[i].Value);
}
@@ -444,7 +444,7 @@ void CAccEditableText::get_AnyFromOLECHAR(const ::rtl::OUString &ouName, const :
pos = ouValue.indexOf("Height=", pos);
if(pos != -1)
{
- ouSubValue = ouValue.copy(pos + 7, ouValue.getLength() - pos - 7);
+ ouSubValue = ouValue.copy(pos + 7);
lineSpacing.Height = (sal_Int16)ouSubValue.toInt32();
}
else