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

Julien Nabet serval2412 at yahoo.fr
Thu Jun 6 15:13:49 PDT 2013


 dbaccess/source/ui/control/FieldDescControl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c5b4e516df611cdc84b165da275a812061ee6060
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Fri Jun 7 00:13:12 2013 +0200

    cppcheck: reduce scope
    
    Change-Id: Ie1eab551a2d5dce21b55226b17d62d9a78c1ffdd

diff --git a/dbaccess/source/ui/control/FieldDescControl.cxx b/dbaccess/source/ui/control/FieldDescControl.cxx
index 4e6bce8..009300b 100644
--- a/dbaccess/source/ui/control/FieldDescControl.cxx
+++ b/dbaccess/source/ui/control/FieldDescControl.cxx
@@ -1792,10 +1792,10 @@ String OFieldDescControl::getControlDefault( const OFieldDescription* _pFieldDes
     {
         sal_uInt32 nFormatKey;
         sal_Bool bTextFormat = sal_False;
-        double nValue = 0.0;
 
         try
         {
+            double nValue = 0.0;
             bTextFormat = isTextFormat(_pFieldDescr,nFormatKey);
             if ( _pFieldDescr->GetControlDefault() >>= sDefault )
             {


More information about the Libreoffice-commits mailing list