diff options
Diffstat (limited to 'starmath/source/document.cxx')
-rw-r--r-- | starmath/source/document.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index da9dd3e6ee1a..6dc19f5b9fa0 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -224,17 +224,21 @@ void SmDocShell::SetFormat(SmFormat& rFormat) } } -String SmDocShell::GetAccessibleText() +OUString SmDocShell::GetAccessibleText() { RTL_LOGFILE_CONTEXT( aLog, "starmath: SmDocShell::GetAccessibleText" ); if (!IsFormulaArranged()) ArrangeFormula(); - if (0 == aAccText.Len()) + if (aAccText.isEmpty()) { OSL_ENSURE( pTree, "Tree missing" ); if (pTree) - pTree->GetAccessibleText( aAccText ); + { + OUStringBuffer aBuf; + pTree->GetAccessibleText(aBuf); + aAccText = aBuf.makeStringAndClear(); + } } return aAccText; } @@ -306,7 +310,7 @@ void SmDocShell::ArrangeFormula() SetFormulaArranged(true); // invalidate accessible text - aAccText = String(); + aAccText = OUString(); } |