diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-08-30 15:29:20 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-08-30 15:29:20 +0200 |
commit | f5a99c3748b9221ae58e38f85d549deeef425abb (patch) | |
tree | 4b96411d130e75a7494e2bba62ed06812b98f6fb /starmath | |
parent | a86df4bbe0e4f3f3d20f3e33da77911019ad6350 (diff) |
loplugin:stringconstant: adapt to improved OUStringLiteral1 (starmath)
Change-Id: Ic0a3a2ae6c0e2601cb415cba971620a71ded02a5
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/mathtype.cxx | 30 | ||||
-rw-r--r-- | starmath/source/node.cxx | 2 | ||||
-rw-r--r-- | starmath/source/ooxmlimport.cxx | 4 |
3 files changed, 18 insertions, 18 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; } diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx index 511db4305792..efd26e70b0fa 100644 --- a/starmath/source/node.cxx +++ b/starmath/source/node.cxx @@ -2602,7 +2602,7 @@ void SmAttributNode::CreateTextFromNode(OUString &rText) rText += "bar "; break; default: - rText += OUString( nLast ); + rText += OUStringLiteral1( nLast ); break; } } diff --git a/starmath/source/ooxmlimport.cxx b/starmath/source/ooxmlimport.cxx index 577535f1fca9..da29c93ccf9b 100644 --- a/starmath/source/ooxmlimport.cxx +++ b/starmath/source/ooxmlimport.cxx @@ -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() |