[Libreoffice-commits] core.git: vcl/source

Jan Holesovsky kendy at suse.cz
Thu Apr 4 04:28:50 PDT 2013


 vcl/source/app/settings.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit d9e0c08b52dca00508485cc7a8082200a2693ec9
Author: Jan Holesovsky <kendy at suse.cz>
Date:   Thu Apr 4 13:28:25 2013 +0200

    Reduce scope.
    
    Change-Id: I32160cff67494cde2ad21cb6d6fe48091d600b8d

diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx
index a237488..a45f589 100644
--- a/vcl/source/app/settings.cxx
+++ b/vcl/source/app/settings.cxx
@@ -721,7 +721,7 @@ static void setupPersonaHeaderFooter( WhichPersona eWhich, OUString& rHeaderFoot
     rHeaderFooterBitmap = BitmapEx();
 
     // now read the new values and setup bitmaps
-    OUString aHeader, aFooter, aColor;
+    OUString aHeader, aFooter;
     if ( aPersona == "own" )
     {
         sal_Int32 nIndex = 0;
@@ -732,7 +732,7 @@ static void setupPersonaHeaderFooter( WhichPersona eWhich, OUString& rHeaderFoot
         // change menu text color, advance nIndex to skip the '#'
         if ( nIndex > 0 )
         {
-            aColor = aPersonaSettings.getToken( 0, ';', ++nIndex );
+            OUString aColor = aPersonaSettings.getToken( 0, ';', ++nIndex );
             maMenuBarTextColor = Color( aColor.toInt64( 16 ) );
         }
     }


More information about the Libreoffice-commits mailing list