summaryrefslogtreecommitdiff
path: root/starmath/source/accessibility.cxx
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-09-04 17:09:22 +0200
committerAndrzej J.R. Hunt <andrzej@ahunt.org>2013-09-05 08:13:04 +0000
commit6f135b0aa231a2543d73f94e39cb472e12ea47d5 (patch)
treed9c1c0106d70147fe149aa43fb51ee015695def0 /starmath/source/accessibility.cxx
parent4c491c1253de0210dcd4d4ff593ee73562e4d958 (diff)
String to OUString
And removed nearly all xub_StrLen in starmath. Some sal_uInt16 which were xub_StrLen before 9a0d753b84aed53083bed3ed460308b771f432a8 are also converted to sal_Int32 where applicable. Change-Id: I31d7794f4c7aa840545edff41a102b76bb39e042 Reviewed-on: https://gerrit.libreoffice.org/5817 Reviewed-by: Andrzej J.R. Hunt <andrzej@ahunt.org> Tested-by: Andrzej J.R. Hunt <andrzej@ahunt.org>
Diffstat (limited to 'starmath/source/accessibility.cxx')
-rw-r--r--starmath/source/accessibility.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx
index ca8b35de0f56..98a2ece385b8 100644
--- a/starmath/source/accessibility.cxx
+++ b/starmath/source/accessibility.cxx
@@ -504,7 +504,7 @@ awt::Rectangle SAL_CALL SmGraphicAccessible::getCharacterBounds( sal_Int32 nInde
--nIndex;
const SmNode *pTree = pDoc->GetFormulaTree();
- const SmNode *pNode = pTree->FindNodeWithAccessibleIndex( (xub_StrLen) nIndex );
+ const SmNode *pNode = pTree->FindNodeWithAccessibleIndex( nIndex );
//! pNode may be 0 if the index belongs to a char that was inserted
//! only for the accessible text!
if (pNode)
@@ -1450,7 +1450,7 @@ void SmTextForwarder::AppendParagraph()
sal_uInt16 SmTextForwarder::AppendTextPortion( sal_Int32 nPara, const OUString &rText, const SfxItemSet &rSet )
{
- xub_StrLen nRes = 0;
+ sal_uInt16 nRes = 0;
EditEngine *pEditEngine = rEditAcc.GetEditEngine();
if (pEditEngine && nPara < pEditEngine->GetParagraphCount())
{