summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-05-06 07:44:11 +0200
committerNoel Grandin <noel@peralex.com>2014-05-06 07:45:25 +0200
commit794f09f195a449e387ebfbd53eb1b693803c95e7 (patch)
tree4c82e01015ccac094261060021b49757dab12f19 /writerfilter
parent3f569908ac72c20826a45ebed59af9b1e5449207 (diff)
simplify ternary conditions "xxx ? true : yyy"
Look for code like: xxx ? true : yyy; Which can be simplified to: xxx || yyy Change-Id: Ib7ca86580bfd0cf04674328a3c0cf3747de4758d
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/DomainMapper.cxx2
-rw-r--r--writerfilter/source/dmapper/SettingsTable.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper.cxx b/writerfilter/source/dmapper/DomainMapper.cxx
index 43b382d962fc..e50ccf435c37 100644
--- a/writerfilter/source/dmapper/DomainMapper.cxx
+++ b/writerfilter/source/dmapper/DomainMapper.cxx
@@ -1580,7 +1580,7 @@ void DomainMapper::sprmWithProps( Sprm& rSprm, PropertyMapPtr rContext )
{
OSL_ENSURE(pSectionContext, "SectionContext unavailable!");
if(pSectionContext)
- pSectionContext->SetTitlePage( nIntValue > 0 ? true : false );//section has title page
+ pSectionContext->SetTitlePage( nIntValue > 0 );//section has title page
}
break;
case 165:
diff --git a/writerfilter/source/dmapper/SettingsTable.cxx b/writerfilter/source/dmapper/SettingsTable.cxx
index a423b675df5d..9c44fd2858b1 100644
--- a/writerfilter/source/dmapper/SettingsTable.cxx
+++ b/writerfilter/source/dmapper/SettingsTable.cxx
@@ -216,7 +216,7 @@ void SettingsTable::lcl_sprm(Sprm& rSprm)
m_pImpl->m_sCharacterSpacing = sStringValue; // doNotCompress, compressPunctuation, compressPunctuationAndJapaneseKana
break;
case NS_ooxml::LN_CT_Settings_doNotIncludeSubdocsInStats: // 92554; // Do Not Include Content in Text Boxes, Footnotes, and Endnotes in Document Statistics)
- m_pImpl->m_doNotIncludeSubdocsInStats = nIntValue? true : false;
+ m_pImpl->m_doNotIncludeSubdocsInStats = nIntValue ? true : false;
break;
case NS_ooxml::LN_CT_Settings_decimalSymbol: // 92562;
m_pImpl->m_sDecimalSymbol = sStringValue;