summaryrefslogtreecommitdiff
path: root/starmath/source/visitors.cxx
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2012-10-01 20:46:34 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2012-10-01 20:59:50 +0400
commitfa614231733800f4a961b77e36c86f8840d12251 (patch)
treebdf3877711bb11bd9326e67b0f1640f93cea2ba0 /starmath/source/visitors.cxx
parente4080dce647edfcec832164fcfb56cb36e220e27 (diff)
String -> OUString
Change-Id: Ie5e800df0c7663e6bb62a2019cf2fd8b0c1ae772
Diffstat (limited to 'starmath/source/visitors.cxx')
-rw-r--r--starmath/source/visitors.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/starmath/source/visitors.cxx b/starmath/source/visitors.cxx
index f1b835a462ee..dc930ecc65ea 100644
--- a/starmath/source/visitors.cxx
+++ b/starmath/source/visitors.cxx
@@ -742,7 +742,7 @@ void SmDrawingVisitor::Visit( SmRectangleNode* pNode )
void SmDrawingVisitor::DrawTextNode( SmTextNode* pNode )
{
- if ( pNode->IsPhantom( ) || pNode->GetText( ).Len( ) == 0 || pNode->GetText( ).GetChar( 0 ) == xub_Unicode( '\0' ) )
+ if ( pNode->IsPhantom() || pNode->GetText().isEmpty() || pNode->GetText()[0] == '\0' )
return;
SmTmpDevice2 aTmpDev ( ( OutputDevice & ) rDev, false );
@@ -936,15 +936,15 @@ void SmSetSelectionVisitor::Visit( SmTextNode* pNode ) {
IsSelecting = false;
} else if( !IsSelecting && i1 != -1 ) {
start = i1;
- end = pNode->GetText( ).Len( );
+ end = pNode->GetText().getLength();
IsSelecting = true;
} else if( !IsSelecting && i2 != -1 ) {
start = i2;
- end = pNode->GetText( ).Len( );
+ end = pNode->GetText().getLength();
IsSelecting = true;
} else if( IsSelecting ) {
start = 0;
- end = pNode->GetText( ).Len( );
+ end = pNode->GetText().getLength();
} else {
pNode->SetSelected( false );
start = 0;
@@ -1329,9 +1329,9 @@ void SmCaretPosGraphBuildingVisitor::Visit( SmMatrixNode* pNode )
*/
void SmCaretPosGraphBuildingVisitor::Visit( SmTextNode* pNode )
{
- OSL_ENSURE( pNode->GetText( ).Len( ) > 0, "Empty SmTextNode is bad" );
+ OSL_ENSURE( !pNode->GetText().isEmpty(), "Empty SmTextNode is bad" );
- int size = pNode->GetText( ).Len( );
+ int size = pNode->GetText().getLength();
for( int i = 1; i <= size; i++ ){
SmCaretPosGraphEntry* pRight = pRightMost;
pRightMost = pGraph->Add( SmCaretPos( pNode, i ), pRight );
@@ -2302,10 +2302,10 @@ void SmNodeToTextVisitor::Visit( SmFontNode* pNode )
default:
break;
}
- Append( String( ::rtl::math::doubleToUString(
+ Append( ::rtl::math::doubleToUString(
static_cast<double>( pNode->GetSizeParameter( ) ),
rtl_math_StringFormat_Automatic,
- rtl_math_DecimalPlaces_Max, '.', sal_True ) ) );
+ rtl_math_DecimalPlaces_Max, '.', sal_True ) );
Append( " " );
}
break;