diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-13 21:28:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-14 08:29:22 +0200 |
commit | 1123a47c9771e0f4a680316c034e9878919a85d5 (patch) | |
tree | 53a4e25bec1ea031c654a2af7e68e908722b98c9 /sw/source/core/doc | |
parent | 42204a80aa7d4ce778596fa6ccab7d144c04e9b1 (diff) |
loplugin:sequentialassign in sw
Change-Id: Iec56b41dba502e438dfdc7a99385545b3efdf8c7
Reviewed-on: https://gerrit.libreoffice.org/70720
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/doc')
-rw-r--r-- | sw/source/core/doc/dbgoutsw.cxx | 5 | ||||
-rw-r--r-- | sw/source/core/doc/docnum.cxx | 4 |
2 files changed, 2 insertions, 7 deletions
diff --git a/sw/source/core/doc/dbgoutsw.cxx b/sw/source/core/doc/dbgoutsw.cxx index d69e1cb0308d..7f5339a7206d 100644 --- a/sw/source/core/doc/dbgoutsw.cxx +++ b/sw/source/core/doc/dbgoutsw.cxx @@ -718,10 +718,7 @@ const char * dbg_out( SwOutlineNodes const & rNodes) static OUString lcl_dbg_out(const SvxNumberFormat & rFormat) { - OUString aResult; - - aResult = lcl_dbg_out_NumType(rFormat.GetNumberingType()); - + OUString aResult = lcl_dbg_out_NumType(rFormat.GetNumberingType()); return aResult; } diff --git a/sw/source/core/doc/docnum.cxx b/sw/source/core/doc/docnum.cxx index f248472ecce2..ad013e8c5744 100644 --- a/sw/source/core/doc/docnum.cxx +++ b/sw/source/core/doc/docnum.cxx @@ -2422,9 +2422,7 @@ sal_uInt16 SwDoc::FindNumRule( const OUString& rName ) const SwNumRule* SwDoc::FindNumRulePtr( const OUString& rName ) const { - SwNumRule * pResult = nullptr; - - pResult = maNumRuleMap[rName]; + SwNumRule * pResult = maNumRuleMap[rName]; if ( !pResult ) { |