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

Julien Nabet (via logerrit) logerrit at kemper.freedesktop.org
Sun Oct 3 20:17:28 UTC 2021


 package/source/manifest/ManifestImport.cxx |    3 +--
 package/source/zippackage/ZipPackage.cxx   |    7 +++----
 2 files changed, 4 insertions(+), 6 deletions(-)

New commits:
commit 28480639b4d2ad29d48b98ab9fb7a3755cb9d19e
Author:     Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Sun Oct 3 14:02:58 2021 +0200
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Sun Oct 3 22:16:55 2021 +0200

    drop 'using namespace std' in package
    
    Change-Id: Ifa9f5c310a8be988c1058644540ac52f160bc156
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123018
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/package/source/manifest/ManifestImport.cxx b/package/source/manifest/ManifestImport.cxx
index 76c0be4ea36f..3cab72abacfe 100644
--- a/package/source/manifest/ManifestImport.cxx
+++ b/package/source/manifest/ManifestImport.cxx
@@ -31,7 +31,6 @@
 using namespace com::sun::star::uno;
 using namespace com::sun::star::beans;
 using namespace com::sun::star;
-using namespace std;
 
 
 constexpr OUStringLiteral gsFileEntryElement     ( u"" ELEMENT_FILE_ENTRY );
@@ -106,7 +105,7 @@ constexpr OUStringLiteral gsAES256_URL                   ( u"" AES256_URL );
 constexpr OUStringLiteral gsPBKDF2_Name                  ( u"" PBKDF2_NAME );
 constexpr OUStringLiteral gsPBKDF2_URL                   ( u"" PBKDF2_URL );
 
-ManifestImport::ManifestImport( vector < Sequence < PropertyValue > > & rNewManVector )
+ManifestImport::ManifestImport( std::vector < Sequence < PropertyValue > > & rNewManVector )
     : bIgnoreEncryptData    ( false )
     , bPgpEncryption ( false )
     , nDerivedKeySize( 0 )
diff --git a/package/source/zippackage/ZipPackage.cxx b/package/source/zippackage/ZipPackage.cxx
index d70c2bae27a4..8a74267d755f 100644
--- a/package/source/zippackage/ZipPackage.cxx
+++ b/package/source/zippackage/ZipPackage.cxx
@@ -81,7 +81,6 @@
 #include <comphelper/sequence.hxx>
 #include <comphelper/servicehelper.hxx>
 
-using namespace std;
 using namespace osl;
 using namespace cppu;
 using namespace ucbhelper;
@@ -1044,7 +1043,7 @@ void ZipPackage::WriteMimetypeMagicFile( ZipOutputStream& aZipOut )
     }
 }
 
-void ZipPackage::WriteManifest( ZipOutputStream& aZipOut, const vector< uno::Sequence < PropertyValue > >& aManList )
+void ZipPackage::WriteManifest( ZipOutputStream& aZipOut, const std::vector< uno::Sequence < PropertyValue > >& aManList )
 {
     // Write the manifest
     uno::Reference < XManifestWriter > xWriter = ManifestWriter::create( m_xContext );
@@ -1071,7 +1070,7 @@ void ZipPackage::WriteManifest( ZipOutputStream& aZipOut, const vector< uno::Seq
     aZipOut.rawCloseEntry();
 }
 
-void ZipPackage::WriteContentTypes( ZipOutputStream& aZipOut, const vector< uno::Sequence < PropertyValue > >& aManList )
+void ZipPackage::WriteContentTypes( ZipOutputStream& aZipOut, const std::vector< uno::Sequence < PropertyValue > >& aManList )
 {
     ZipEntry* pEntry = new ZipEntry;
     rtl::Reference<ZipPackageBuffer> pBuffer = new ZipPackageBuffer;
@@ -1245,7 +1244,7 @@ uno::Reference< io::XInputStream > ZipPackage::writeTempFile()
         }
 
         // Create a vector to store data for the manifest.xml file
-        vector < uno::Sequence < PropertyValue > > aManList;
+        std::vector < uno::Sequence < PropertyValue > > aManList;
 
         static constexpr OUStringLiteral sMediaType(u"MediaType");
         static constexpr OUStringLiteral sVersion(u"Version");


More information about the Libreoffice-commits mailing list