diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-03-14 21:06:36 +0100 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-03-14 21:06:36 +0100 |
commit | 568044ae7245b94099bd5511e17babdc15f6ca62 (patch) | |
tree | 4369c6835cb593360f37abb2a7d05c4e1580a9bb /sc | |
parent | 23075c27b5cf99d8415a304f9ab151a73938edcb (diff) |
Pointless nit-picking on coding style
Change-Id: I54bd60c11a83feceb39557a82c62e290438dff80
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/dpoutput.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sc/source/core/data/dpoutput.cxx b/sc/source/core/data/dpoutput.cxx index ce6e102ca2a7..ae3e2eb1e6ed 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&) |