diff options
author | Muhammet Kara <muhammet.kara@collabora.com> | 2020-09-08 19:04:16 +0300 |
---|---|---|
committer | Muhammet Kara <muhammet.kara@collabora.com> | 2020-09-09 08:36:57 +0200 |
commit | 1b135d95623eb455ce4e633b032ba2226a8b8c94 (patch) | |
tree | 35bfd374415b42c0754d7a8b6b50c35653c99a43 | |
parent | 41690703be4c15a95543a9d211ca272f7690e871 (diff) |
Remove unnecessary search before insert
Change-Id: Ie6ba54a61b59879bd047343cc9857d9937cc76c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102269
Tested-by: Jenkins
Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
-rw-r--r-- | xmloff/source/draw/sdxmlexp.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/xmloff/source/draw/sdxmlexp.cxx b/xmloff/source/draw/sdxmlexp.cxx index d5b8463b0d6e..dbb761e9ddec 100644 --- a/xmloff/source/draw/sdxmlexp.cxx +++ b/xmloff/source/draw/sdxmlexp.cxx @@ -2400,13 +2400,11 @@ void SdXMLExport::addDataStyle(const sal_Int32 nNumberFormat, bool bTimeFormat ) if( bTimeFormat ) { - if( maUsedTimeStyles.count( nFormat ) == 0 ) - maUsedTimeStyles.insert( nFormat ); + maUsedTimeStyles.insert( nFormat ); } else { - if( maUsedDateStyles.count( nFormat ) == 0 ) - maUsedDateStyles.insert( nFormat ); + maUsedDateStyles.insert( nFormat ); } } |