loplugin:stringconstant: adapt to improved OUStringLiteral1 (starmath)

Change-Id: Ic0a3a2ae6c0e2601cb415cba971620a71ded02a5
This commit is contained in:
Stephan Bergmann
2016-08-30 15:29:20 +02:00
parent a86df4bbe0
commit f5a99c3748
3 changed files with 18 additions and 18 deletions

View File

@@ -110,56 +110,56 @@ bool MathType::LookupChar(sal_Unicode nChar,OUString &rRet,sal_uInt8 nVersion,
pC = " rightarrow ";
else
{
rRet += OUString( nChar );
rRet += OUStringLiteral1( nChar );
bRet=true;
}
break;
case 0x00fb:
if ((nVersion < 3) && (nTypeFace == 0x81))
nChar = 0xDF;
rRet += OUString( nChar );
rRet += OUStringLiteral1( nChar );
bRet=true;
break;
case 'a':
if ((nVersion < 3) && (nTypeFace == 0x84))
nChar = 0x3b1;
rRet += OUString( nChar );
rRet += OUStringLiteral1( nChar );
bRet=true;
break;
case 'b':
if ((nVersion < 3) && (nTypeFace == 0x84))
nChar = 0x3b2;
rRet += OUString( nChar );
rRet += OUStringLiteral1( nChar );
bRet=true;
break;
case 'l':
if ((nVersion < 3) && (nTypeFace == 0x84))
nChar = 0x3bb;
rRet += OUString( nChar );
rRet += OUStringLiteral1( nChar );
bRet=true;
break;
case 'n':
if ((nVersion < 3) && (nTypeFace == 0x84))
nChar = 0x3bd;
rRet += OUString( nChar );
rRet += OUStringLiteral1( nChar );
bRet=true;
break;
case 'r':
if ((nVersion < 3) && (nTypeFace == 0x84))
nChar = 0x3c1;
rRet += OUString( nChar );
rRet += OUStringLiteral1( nChar );
bRet=true;
break;
case 'D':
if ((nVersion < 3) && (nTypeFace == 0x84))
nChar = 0x394;
rRet += OUString( nChar );
rRet += OUStringLiteral1( nChar );
bRet=true;
break;
case 0xa9:
if ((nVersion < 3) && (nTypeFace == 0x82))
nChar = '\'';
rRet += OUString( nChar );
rRet += OUStringLiteral1( nChar );
bRet=true;
break;
case 0x00f1:
@@ -167,7 +167,7 @@ bool MathType::LookupChar(sal_Unicode nChar,OUString &rRet,sal_uInt8 nVersion,
pC = " \\rangle ";
else
{
rRet += OUString( nChar );
rRet += OUStringLiteral1( nChar );
bRet=true;
}
break;
@@ -176,7 +176,7 @@ bool MathType::LookupChar(sal_Unicode nChar,OUString &rRet,sal_uInt8 nVersion,
pC = " <= ";
else
{
rRet += OUString( nChar );
rRet += OUStringLiteral1( nChar );
bRet=true;
}
break;
@@ -185,7 +185,7 @@ bool MathType::LookupChar(sal_Unicode nChar,OUString &rRet,sal_uInt8 nVersion,
pC = " drarrow ";
else
{
rRet += OUString( nChar );
rRet += OUStringLiteral1( nChar );
bRet=true;
}
break;
@@ -194,7 +194,7 @@ bool MathType::LookupChar(sal_Unicode nChar,OUString &rRet,sal_uInt8 nVersion,
pC = " %OMEGA ";
else
{
rRet += OUString( nChar );
rRet += OUStringLiteral1( nChar );
bRet=true;
}
break;
@@ -442,7 +442,7 @@ bool MathType::LookupChar(sal_Unicode nChar,OUString &rRet,sal_uInt8 nVersion,
break;
case 0x22b2:
case 0x22b3:
rRet += " " + OUString( nChar ) + " ";
rRet += " " + OUStringLiteral1( nChar ) + " ";
break;
case 0x22a5:
pC = " ortho ";
@@ -513,7 +513,7 @@ bool MathType::LookupChar(sal_Unicode nChar,OUString &rRet,sal_uInt8 nVersion,
pC = " %OMEGA ";
break;
default:
rRet += OUString( nChar );
rRet += OUStringLiteral1( nChar );
bRet=true;
break;
}

View File

@@ -2602,7 +2602,7 @@ void SmAttributNode::CreateTextFromNode(OUString &rText)
rText += "bar ";
break;
default:
rText += OUString( nLast );
rText += OUStringLiteral1( nLast );
break;
}
}

View File

@@ -462,9 +462,9 @@ OUString SmOoxmlImport::handleGroupChr()
if( pos == bot && chr == sal_Unicode( 0x23df ))
return "{" + e + "} underbrace { }";
if( pos == top )
return "{" + e + "} csup {" + OUString( chr ) + "}";
return "{" + e + "} csup {" + OUStringLiteral1( chr ) + "}";
else
return "{" + e + "} csub {" + OUString( chr ) + "}";
return "{" + e + "} csub {" + OUStringLiteral1( chr ) + "}";
}
OUString SmOoxmlImport::handleM()