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


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/3968

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/68/3968/1

fdo#38838 Replacement of the String with OUString

Change-Id: Ib6fda987be15525d939cfe5c3e65f881aff83131
---
M cui/source/tabpages/tpline.cxx
1 file changed, 19 insertions(+), 19 deletions(-)



diff --git a/cui/source/tabpages/tpline.cxx b/cui/source/tabpages/tpline.cxx
index 8f80f91..1747eba 100644
--- a/cui/source/tabpages/tpline.cxx
+++ b/cui/source/tabpages/tpline.cxx
@@ -127,8 +127,8 @@
     pXPool              ( (XOutdevItemPool*) rInAttrs.GetPool() ),
     aXLStyle            ( XLINE_DASH ),
     aXWidth             ( 1 ),
-    aXDash              ( String(), XDash( XDASH_RECT, 3, 7, 2, 40, 15 ) ),
-    aXColor             ( String(), COL_LIGHTRED ),
+    aXDash              ( OUString(), XDash( XDASH_RECT, 3, 7, 2, 40, 15 ) ),
+    aXColor             ( OUString(), COL_LIGHTRED ),
     aXLineAttr          ( pXPool ),
     rXLSet              ( aXLineAttr.GetItemSet() ),
      pnLineEndListState( 0 ),
@@ -136,17 +136,17 @@
     pnColorListState( 0 ),
    nPageType           ( 0 )
 {
-    aLbEndStyle.SetAccessibleName(String(CUI_RES(STR_STYLE)));
-    aLbStartStyle.SetAccessibleName(String(CUI_RES( STR_LB_START_STYLE ) ) );
-    aMtrStartWidth.SetAccessibleName(String(CUI_RES( STR_MTR_FLD_START_WIDTH ) ) );
-    aLbEndStyle.SetAccessibleName(String(CUI_RES( STR_LB_END_STYLE ) ) );
-    aMtrEndWidth.SetAccessibleName(String(CUI_RES( STR_MTR_FLD_END_WIDTH ) ) );
-    aTsbCenterStart.SetAccessibleName(String(CUI_RES( STR_CENTER_START ) ) );
-    aTsbCenterEnd.SetAccessibleName(String(CUI_RES( STR_CENTER_END ) ) );
+    aLbEndStyle.SetAccessibleName(OUString(CUI_RES(STR_STYLE)));
+    aLbStartStyle.SetAccessibleName(OUString(CUI_RES( STR_LB_START_STYLE ) ) );
+    aMtrStartWidth.SetAccessibleName(OUString(CUI_RES( STR_MTR_FLD_START_WIDTH ) ) );
+    aLbEndStyle.SetAccessibleName(OUString(CUI_RES( STR_LB_END_STYLE ) ) );
+    aMtrEndWidth.SetAccessibleName(OUString(CUI_RES( STR_MTR_FLD_END_WIDTH ) ) );
+    aTsbCenterStart.SetAccessibleName(OUString(CUI_RES( STR_CENTER_START ) ) );
+    aTsbCenterEnd.SetAccessibleName(OUString(CUI_RES( STR_CENTER_END ) ) );
 
     FreeResource();
 
-    aCtlPreview.SetAccessibleName(String(CUI_RES(STR_EXAMPLE)));
+    aCtlPreview.SetAccessibleName(OUString(CUI_RES(STR_EXAMPLE)));
 
     // This Page requires ExchangeSupport
     SetExchangeSupport();
@@ -518,7 +518,7 @@
     aLbLineStyle.SelectEntryPos( nOldSelect );
 
     // Line end style
-    String sNone( SVX_RES( RID_SVXSTR_NONE ) );
+    OUString sNone( SVX_RES( RID_SVXSTR_NONE ) );
     nOldSelect = aLbStartStyle.GetSelectEntryPos();
     aLbStartStyle.Clear();
     aLbStartStyle.InsertEntry( sNone );
@@ -586,7 +586,7 @@
             *pnLineEndListState = CT_NONE;
 
             nPos = aLbLineStyle.GetSelectEntryPos();
-            String sNone( SVX_RES( RID_SVXSTR_NONE ) );
+            OUString sNone( SVX_RES( RID_SVXSTR_NONE ) );
             aLbStartStyle.Clear();
             aLbStartStyle.InsertEntry( sNone );
 
@@ -1293,7 +1293,7 @@
                             Get( XATTR_LINEWIDTH ) ).GetValue(), ePoolUnit );
     }
     else
-        aMtrLineWidth.SetText( String() );
+        aMtrLineWidth.SetText( OUString() );
 
     // Line color
     aLbColor.SetNoSelection();
@@ -1304,7 +1304,7 @@
         aLbColor.SelectEntry( aCol );
         if( aLbColor.GetSelectEntryCount() == 0 )
         {
-            aLbColor.InsertEntry( aCol, String() );
+            aLbColor.InsertEntry( aCol, OUString() );
             aLbColor.SelectEntry( aCol );
         }
     }
@@ -1387,7 +1387,7 @@
                             Get( XATTR_LINESTARTWIDTH ) ).GetValue(), ePoolUnit );
     }
     else
-        aMtrStartWidth.SetText( String() );
+        aMtrStartWidth.SetText( OUString() );
 
     // Line end strength
     if( bObjSelected &&
@@ -1401,7 +1401,7 @@
                             Get( XATTR_LINEENDWIDTH ) ).GetValue(), ePoolUnit );
     }
     else
-        aMtrEndWidth.SetText( String() );
+        aMtrEndWidth.SetText( OUString() );
 
     // Centered line end (start)
     if( bObjSelected &&
@@ -1452,7 +1452,7 @@
         ChangeTransparentHdl_Impl( NULL );
     }
     else
-        aMtrTransparent.SetText( String() );
+        aMtrTransparent.SetText( OUString() );
 
     if( !aLbStartStyle.IsEnabled()  &&
         !aLbEndStyle.IsEnabled()    &&
@@ -1469,8 +1469,8 @@
 
     // Synchronize
     // We get the value from the INI file now
-    String aStr = GetUserData();
-    aCbxSynchronize.Check( (sal_Bool)aStr.ToInt32() );
+    OUString aStr = GetUserData();
+    aCbxSynchronize.Check( (sal_Bool)aStr.toInt32() );
 
     // #116827#
     if(bObjSelected && SFX_ITEM_DEFAULT == rAttrs.GetItemState(XATTR_LINEJOINT))

-- 
To view, visit https://gerrit.libreoffice.org/3968
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib6fda987be15525d939cfe5c3e65f881aff83131
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Marcos Paulo dos Santos <marcospdss.org@gmail.com>


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.