diff options
Diffstat (limited to 'starmath/source/node.cxx')
-rw-r--r-- | starmath/source/node.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx index 994c86c7d652..4760d9279824 100644 --- a/starmath/source/node.cxx +++ b/starmath/source/node.cxx @@ -520,7 +520,7 @@ const SmNode * SmNode::FindRectClosestTo(const Point &rPoint) const return pResult; } -void SmNode::GetAccessibleText( String &/*rText*/ ) const +void SmNode::GetAccessibleText( OUStringBuffer &/*rText*/ ) const { OSL_FAIL( "SmNode: GetAccessibleText not overloaded" ); } @@ -530,12 +530,12 @@ const SmNode * SmNode::FindNodeWithAccessibleIndex(xub_StrLen nAccIdx) const const SmNode *pResult = 0; sal_Int32 nIdx = GetAccessibleIndex(); - String aTxt; + OUStringBuffer aTxt; if (nIdx >= 0) GetAccessibleText( aTxt ); // get text if used in following 'if' statement if (nIdx >= 0 - && nIdx <= nAccIdx && nAccIdx < nIdx + aTxt.Len()) + && nIdx <= nAccIdx && nAccIdx < nIdx + aTxt.getLength()) pResult = this; else { @@ -749,7 +749,7 @@ SmNode * SmStructureNode::GetSubNode(sal_uInt16 nIndex) } -void SmStructureNode::GetAccessibleText( String &rText ) const +void SmStructureNode::GetAccessibleText( OUStringBuffer &rText ) const { sal_uInt16 nNodes = GetNumSubNodes(); for (sal_uInt16 i = 0; i < nNodes; ++i) @@ -758,7 +758,7 @@ void SmStructureNode::GetAccessibleText( String &rText ) const if (pNode) { if (pNode->IsVisible()) - ((SmStructureNode *) pNode)->nAccIndex = rText.Len(); + ((SmStructureNode *) pNode)->nAccIndex = rText.getLength(); pNode->GetAccessibleText( rText ); } } @@ -787,9 +787,9 @@ SmNode * SmVisibleNode::GetSubNode(sal_uInt16 /*nIndex*/) /////////////////////////////////////////////////////////////////////////// -void SmGraphicNode::GetAccessibleText( String &rText ) const +void SmGraphicNode::GetAccessibleText( OUStringBuffer &rText ) const { - rText += GetToken().aText; + rText.append(GetToken().aText); } /////////////////////////////////////////////////////////////////////////// @@ -2440,9 +2440,9 @@ void SmTextNode::CreateTextFromNode(String &rText) } -void SmTextNode::GetAccessibleText( String &rText ) const +void SmTextNode::GetAccessibleText( OUStringBuffer &rText ) const { - rText += aText; + rText.append(aText); } void SmTextNode::AdjustFontDesc() |