summaryrefslogtreecommitdiff
path: root/starmath/source/mathtype.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-08-30 15:29:20 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-08-30 15:29:20 +0200
commitf5a99c3748b9221ae58e38f85d549deeef425abb (patch)
tree4b96411d130e75a7494e2bba62ed06812b98f6fb /starmath/source/mathtype.cxx
parenta86df4bbe0e4f3f3d20f3e33da77911019ad6350 (diff)
loplugin:stringconstant: adapt to improved OUStringLiteral1 (starmath)
Change-Id: Ic0a3a2ae6c0e2601cb415cba971620a71ded02a5
Diffstat (limited to 'starmath/source/mathtype.cxx')
-rw-r--r--starmath/source/mathtype.cxx30
1 files changed, 15 insertions, 15 deletions
diff --git a/starmath/source/mathtype.cxx b/starmath/source/mathtype.cxx
index 92aa6c40d835..5fec1eb790f4 100644
--- a/starmath/source/mathtype.cxx
+++ b/starmath/source/mathtype.cxx
@@ -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;
}