[Libreoffice-commits] core.git: sc/source
Fridrich Å trba
fridrich.strba at bluewin.ch
Thu Mar 14 13:07:16 PDT 2013
sc/source/core/data/dpoutput.cxx | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
New commits:
commit 568044ae7245b94099bd5511e17babdc15f6ca62
Author: Fridrich Å trba <fridrich.strba at 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&)
More information about the Libreoffice-commits
mailing list