diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-04 14:00:40 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-11 11:21:26 +0200 |
commit | e52779d2f8722c713f72aedbf475267440d729f0 (patch) | |
tree | 0f2f15b2a7645e0b75f8057c96c90e05e1a6e7df /starmath | |
parent | e9c4ee996d5a6bf895072613ac4e488346ee5b05 (diff) |
remove unnecessary use of OUString constructor
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/ElementsDockingWindow.cxx | 10 | ||||
-rw-r--r-- | starmath/source/unomodel.cxx | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx index 89ef87dcff27..196ee266052f 100644 --- a/starmath/source/ElementsDockingWindow.cxx +++ b/starmath/source/ElementsDockingWindow.cxx @@ -532,15 +532,15 @@ void SmElementsControl::build() break; case RID_CATEGORY_EXAMPLES: { - OUString aEquation = OUString("C=%pi cdot d = 2 cdot %pi cdot r"); + OUString aEquation = "C=%pi cdot d = 2 cdot %pi cdot r"; addElement(aEquation, aEquation, ""); - aEquation = OUString("E=mc^2"); + aEquation = "E=mc^2"; addElement(aEquation, aEquation, ""); - aEquation = OUString("a^2 + b^2 = c^2"); + aEquation = "a^2 + b^2 = c^2"; addElement(aEquation, aEquation, ""); - aEquation = OUString("f ( x ) = sum from { { i = 0 } } to { infinity } { {f^{(i)}(0)} over {i!} x^i}"); + aEquation = "f ( x ) = sum from { { i = 0 } } to { infinity } { {f^{(i)}(0)} over {i!} x^i}"; addElement(aEquation, aEquation, ""); - aEquation = OUString("f ( x ) = {1} over {%sigma sqrt{2%pi} }e^-{{(x-%mu)^2} over {2%sigma^2}}"); + aEquation = "f ( x ) = {1} over {%sigma sqrt{2%pi} }e^-{{(x-%mu)^2} over {2%sigma^2}}"; addElement(aEquation, aEquation, ""); } break; diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx index 6e5391c5bbfc..f2a4eab73165 100644 --- a/starmath/source/unomodel.cxx +++ b/starmath/source/unomodel.cxx @@ -83,7 +83,7 @@ SmPrintUIOptions::SmPrintUIOptions() m_aUIProperties.realloc( nNumProps ); // load the math PrinterOptions into the custom tab - m_aUIProperties[nIdx].Name = OUString("OptionsUIFile"); + m_aUIProperties[nIdx].Name = "OptionsUIFile"; m_aUIProperties[nIdx++].Value <<= OUString("modules/smath/ui/printeroptions.ui"); // create Section for formula (results in an extra tab page in dialog) |