diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-09-27 21:07:25 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-10-01 16:36:48 +0400 |
commit | b03eab3560bb5c8379ae711b41796dec459c20e0 (patch) | |
tree | 07bb2e3077a6b2d8477e6c6edc4b050f790582dd /starmath/source | |
parent | 773667483e3991b078eca03568681e2f3e8f4ec9 (diff) |
String -> OUString
Change-Id: Icdb39e5b5ba38d48f5cc3a4ae371fb77cb981242
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/cursor.cxx | 2 | ||||
-rw-r--r-- | starmath/source/visitors.cxx | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx index 489c339f4d49..de674f491b77 100644 --- a/starmath/source/cursor.cxx +++ b/starmath/source/cursor.cxx @@ -1462,7 +1462,7 @@ void SmCursor::EndEdit(){ RequestRepaint(); //Update the edit engine and text of the document - String formula; + OUString formula; SmNodeToTextVisitor(pTree, formula); //pTree->CreateTextFromNode(formula); pDocShell->aText = formula; diff --git a/starmath/source/visitors.cxx b/starmath/source/visitors.cxx index 9c279702d057..f1b835a462ee 100644 --- a/starmath/source/visitors.cxx +++ b/starmath/source/visitors.cxx @@ -2117,6 +2117,12 @@ void SmSelectionDrawingVisitor::Visit( SmTextNode* pNode ) /////////////////////////////// SmNodeToTextVisitor /////////////////////////////// +SmNodeToTextVisitor::SmNodeToTextVisitor( SmNode* pNode, OUString &rText ) +{ + pNode->Accept( this ); + rText = aCmdText.makeStringAndClear(); +} + void SmNodeToTextVisitor::Visit( SmTableNode* pNode ) { if( pNode->GetToken( ).eType == TBINOM ) { |