summaryrefslogtreecommitdiff
path: root/l10ntools/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-06 10:19:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-06 11:53:58 +0100
commit004cc81168ce4e9f9b2f8fddf3361f8c23323673 (patch)
tree16c7009a3fac88766214ff073cab5562555a2f3a /l10ntools/source
parent2429c626b4ae5efcd2edf47dabf4add6a7384dff (diff)
loplugin:collapseif in dbaccess..lotuswordpro
Change-Id: Ia2a0d25c3833dfde0cd28337361f3cbd2aa29662 Reviewed-on: https://gerrit.libreoffice.org/62934 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'l10ntools/source')
-rw-r--r--l10ntools/source/xrmmerge.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/l10ntools/source/xrmmerge.cxx b/l10ntools/source/xrmmerge.cxx
index ee45efe8b1a1..ceafbe2129f1 100644
--- a/l10ntools/source/xrmmerge.cxx
+++ b/l10ntools/source/xrmmerge.cxx
@@ -465,11 +465,9 @@ void XRMResMerge::WorkOnText(
const OString &,
OString & )
{
- if ( pMergeDataFile ) {
- if ( !pResData ) {
- pResData.reset( new ResData( GetGID(), sFilename ) );
- pResData->sResTyp = sResourceType;
- }
+ if ( pMergeDataFile && !pResData ) {
+ pResData.reset( new ResData( GetGID(), sFilename ) );
+ pResData->sResTyp = sResourceType;
}
}