sc/source/core/data/dpoutput.cxx |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

New commits:
commit 568044ae7245b94099bd5511e17babdc15f6ca62
Author: Fridrich Å trba <fridrich.st...@bluewin.ch>
Date:   Thu Mar 14 21:06:36 2013 +0100

    Pointless nit-picking on coding style
    
    Change-Id: I54bd60c11a83feceb39557a82c62e290438dff80

diff --git a/sc/source/core/data/dpoutput.cxx b/sc/source/core/data/dpoutput.cxx
index ce6e102..ae3e2eb 100644
--- a/sc/source/core/data/dpoutput.cxx
+++ b/sc/source/core/data/dpoutput.cxx
@@ -1294,16 +1294,14 @@ void lcl_GetTableVars( sal_Int32& rGrandTotalCols, 
sal_Int32& rGrandTotalRows, s
                     ScDPOutput::GetDataDimensionNames( aSourceName, 
aGivenName, xDim );
                     try
                     {
-                        uno::Any aValue = xDimProp->getPropertyValue(
-                                
rtl::OUString::createFromAscii(SC_UNO_DP_LAYOUTNAME) );
+                        uno::Any aValue = xDimProp->getPropertyValue( 
SC_UNO_DP_LAYOUTNAME );
 
                         if( aValue.hasValue() )
                         {
                             OUString strLayoutName;
 
-                            if( aValue >>= strLayoutName )
-                                if ( strLayoutName.getLength() > 0 )
-                                    aGivenName = strLayoutName;
+                            if( ( aValue >>= strLayoutName ) && 
!strLayoutName.isEmpty() )
+                                aGivenName = strLayoutName;
                         }
                     }
                     catch(const uno::Exception&)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to