Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


- -- 
Olivier Hallot
Founder, Board of Directors Member - The Document Foundation
LibreOffice translation leader for Brazilian Portuguese
+55-21-8822-8812
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPejIKAAoJEJp3R7nH3vLx7S4H/0fHsbwYDouDrSoUd6dpbwAc
q6bTcrDZV5d66ITwUfeUwmRasH8w7eYCeqm54sUtXHjSkXE1kyh1r7hjTjIhmEKe
1f4SBGdU+prlNT1A1ORH5PlorJO0cGdxG0u/dlmese2hDXhvnhMkoR1o6X/fmkBD
lyO41KqyuWsSGkDPsSZ8Vs+aXEnZHH+ErHk8wqJWrriADjNdqtCr/IkzXF2wP76v
Fy73bi9Wa6VcxdTByxivHowN0eyVxIOemdMdSkuhZUJGJxdV5kfIdVeIPpU5RSnn
peq2d5k+rIkoIijTYmua0Sl/C2P8DsyJK1L9REZwqbDxHGCvCtCvg1Cxr/E+DIQ=
=3lPO
-----END PGP SIGNATURE-----
From c15e9e0bce47e04681229f8faccc30cb5d9b012c Mon Sep 17 00:00:00 2001
From: Olivier Hallot <olivier.hallot@alta.org.br>
Date: Mon, 2 Apr 2012 19:58:58 -0300
Subject: [PATCH] Some String <-> OUString replacements in starmath

Some string to OUString replacements in starmath
---
 starmath/inc/dialog.hxx    |    2 +-
 starmath/inc/utility.hxx   |    2 +-
 starmath/source/dialog.cxx |    4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/starmath/inc/dialog.hxx b/starmath/inc/dialog.hxx
index 23f1297..7cb8521 100644
--- a/starmath/inc/dialog.hxx
+++ b/starmath/inc/dialog.hxx
@@ -366,7 +366,7 @@ class SmSymbolDialog : public ModalDialog
     SmViewShell        &rViewSh;
     SmSymbolManager    &rSymbolMgr;
 
-    String              aSymbolSetName;
+    rtl::OUString       aSymbolSetName;
     SymbolPtrVec_t      aSymbolSet;
 
     OutputDevice       *pFontListDev;
diff --git a/starmath/inc/utility.hxx b/starmath/inc/utility.hxx
index 58e5961..a80fc5d 100644
--- a/starmath/inc/utility.hxx
+++ b/starmath/inc/utility.hxx
@@ -106,7 +106,7 @@ public:
         Font(), nBorderWidth(-1) { Impl_Init(); }
     SmFace(const Font& rFont) :
         Font(rFont), nBorderWidth(-1) { Impl_Init(); }
-    SmFace(const String& rName, const Size& rSize) :
+    SmFace(const rtl::OUString& rName, const Size& rSize) :
         Font(rName, rSize), nBorderWidth(-1) { Impl_Init(); }
     SmFace( FontFamily eFamily, const Size& rSize) :
         Font(eFamily, rSize), nBorderWidth(-1) { Impl_Init(); }
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx
index 6679ae7..0437c0c 100644
--- a/starmath/source/dialog.cxx
+++ b/starmath/source/dialog.cxx
@@ -1677,7 +1677,7 @@ bool SmSymbolDialog::SelectSymbolSet(const XubString &rSymbolSetName)
 void SmSymbolDialog::SelectSymbol(sal_uInt16 nSymbolNo)
 {
     const SmSym *pSym = NULL;
-    if (aSymbolSetName.Len() > 0  &&  nSymbolNo < static_cast< sal_uInt16 >(aSymbolSet.size()))
+    if (!aSymbolSetName.isEmpty()  &&  nSymbolNo < static_cast< sal_uInt16 >(aSymbolSet.size()))
         pSym = aSymbolSet[ nSymbolNo ];
 
     aSymbolSetDisplay.SelectSymbol(nSymbolNo);
@@ -1689,7 +1689,7 @@ void SmSymbolDialog::SelectSymbol(sal_uInt16 nSymbolNo)
 const SmSym * SmSymbolDialog::GetSymbol() const
 {
     sal_uInt16 nSymbolNo = aSymbolSetDisplay.GetSelectSymbol();
-    bool bValid = aSymbolSetName.Len() > 0  &&  nSymbolNo < static_cast< sal_uInt16 
(aSymbolSet.size());
+    bool bValid = !aSymbolSetName.isEmpty()  &&  nSymbolNo < static_cast< sal_uInt16 
(aSymbolSet.size());
     return bValid ? aSymbolSet[ nSymbolNo ] : NULL;
 }
 
-- 
1.7.5.4


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.