summaryrefslogtreecommitdiff
path: root/xmloff/source/style/styleexp.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-09-20 14:29:10 +0200
committerMichael Stahl <mstahl@redhat.com>2017-09-20 15:17:53 +0200
commit0ae13c77b6b20c2b58131fd21fea0ffce2a7a825 (patch)
treee3aa8f57d240c4b207107ab8eb39535d00a5f8b5 /xmloff/source/style/styleexp.cxx
parent2c7ec52b028ea389c6a1c6ce2ee9b6e83566a4e8 (diff)
xmloff,sw: some stylistic cleanup to conditional styles
Change-Id: I1722a0b3d67a7c8740daa5a131d7800319ee2373
Diffstat (limited to 'xmloff/source/style/styleexp.cxx')
-rw-r--r--xmloff/source/style/styleexp.cxx17
1 files changed, 8 insertions, 9 deletions
diff --git a/xmloff/source/style/styleexp.cxx b/xmloff/source/style/styleexp.cxx
index bd8588a1928a..4795aa32b19f 100644
--- a/xmloff/source/style/styleexp.cxx
+++ b/xmloff/source/style/styleexp.cxx
@@ -80,30 +80,29 @@ void XMLStyleExport::exportStyleAttributes( const Reference< XStyle >& )
void XMLStyleExport::exportStyleContent( const Reference< XStyle >& rStyle )
{
Reference< XPropertySet > xPropSet( rStyle, UNO_QUERY );
+ assert(xPropSet.is());
try
{
uno::Any aProperty = xPropSet->getPropertyValue( "ParaStyleConditions" );
uno::Sequence< beans::NamedValue > aSeq;
- int i;
aProperty >>= aSeq;
- for(i = 0; i < aSeq.getLength(); ++i)
+ for (sal_Int32 i = 0; i < aSeq.getLength(); ++i)
{
- beans::NamedValue const& aNamedCond = aSeq[i];
+ beans::NamedValue const& rNamedCond = aSeq[i];
OUString aStyleName;
- if ( aNamedCond.Value >>= aStyleName )
+ if (rNamedCond.Value >>= aStyleName)
{
- if ( aStyleName.getLength() > 0 )
+ if (!aStyleName.isEmpty())
{
- OUString aExternal = GetParaStyleCondExternal( aNamedCond.Name );
+ OUString aExternal = GetParaStyleCondExternal(rNamedCond.Name);
- if (aExternal.getLength() > 0)
+ if (!aExternal.isEmpty())
{
- bool bEncoded;
-
+ bool bEncoded;
GetExport().AddAttribute( XML_NAMESPACE_STYLE,
XML_CONDITION,