[Libreoffice-commits] core.git: xmloff/source

Muhammet Kara (via logerrit) logerrit at kemper.freedesktop.org
Wed Sep 9 06:37:42 UTC 2020


 xmloff/source/draw/sdxmlexp.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 1b135d95623eb455ce4e633b032ba2226a8b8c94
Author:     Muhammet Kara <muhammet.kara at collabora.com>
AuthorDate: Tue Sep 8 19:04:16 2020 +0300
Commit:     Muhammet Kara <muhammet.kara at collabora.com>
CommitDate: Wed Sep 9 08:36:57 2020 +0200

    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 at collabora.com>

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 );
     }
 }
 


More information about the Libreoffice-commits mailing list