summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMuhammet Kara <muhammet.kara@collabora.com>2020-09-08 19:04:16 +0300
committerMuhammet Kara <muhammet.kara@collabora.com>2020-09-09 08:36:57 +0200
commit1b135d95623eb455ce4e633b032ba2226a8b8c94 (patch)
tree35bfd374415b42c0754d7a8b6b50c35653c99a43 /xmloff
parent41690703be4c15a95543a9d211ca272f7690e871 (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>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/sdxmlexp.cxx6
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 );
}
}