Kaydet (Commit) 568044ae authored tarafından Fridrich Štrba's avatar Fridrich Štrba

Pointless nit-picking on coding style

Change-Id: I54bd60c11a83feceb39557a82c62e290438dff80
üst 23075c27
...@@ -1294,16 +1294,14 @@ void lcl_GetTableVars( sal_Int32& rGrandTotalCols, sal_Int32& rGrandTotalRows, s ...@@ -1294,16 +1294,14 @@ void lcl_GetTableVars( sal_Int32& rGrandTotalCols, sal_Int32& rGrandTotalRows, s
ScDPOutput::GetDataDimensionNames( aSourceName, aGivenName, xDim ); ScDPOutput::GetDataDimensionNames( aSourceName, aGivenName, xDim );
try try
{ {
uno::Any aValue = xDimProp->getPropertyValue( uno::Any aValue = xDimProp->getPropertyValue( SC_UNO_DP_LAYOUTNAME );
rtl::OUString::createFromAscii(SC_UNO_DP_LAYOUTNAME) );
if( aValue.hasValue() ) if( aValue.hasValue() )
{ {
OUString strLayoutName; OUString strLayoutName;
if( aValue >>= strLayoutName ) if( ( aValue >>= strLayoutName ) && !strLayoutName.isEmpty() )
if ( strLayoutName.getLength() > 0 ) aGivenName = strLayoutName;
aGivenName = strLayoutName;
} }
} }
catch(const uno::Exception&) catch(const uno::Exception&)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment