diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2018-02-06 17:23:58 -0500 |
---|---|---|
committer | Ashod Nakashian <ashnakash@gmail.com> | 2018-02-14 01:04:11 +0100 |
commit | 97a73d2772a86e26369fc32e25a59c0d5a274c01 (patch) | |
tree | fae4c3f1ac913437cff256a06bb086180232193d /package | |
parent | 335a2b80fa900848a8b60d8fd5db6656bc30a95a (diff) |
oox: cosmetic cleanup
Change-Id: Ifafd7338ddfec8b707b5ddf4acb39512faf186da
Reviewed-on: https://gerrit.libreoffice.org/49325
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'package')
-rw-r--r-- | package/inc/ZipPackageEntry.hxx | 10 | ||||
-rw-r--r-- | package/source/zippackage/ZipPackage.cxx | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/package/inc/ZipPackageEntry.hxx b/package/inc/ZipPackageEntry.hxx index 5e0064f9bf7e..0fa479cb8465 100644 --- a/package/inc/ZipPackageEntry.hxx +++ b/package/inc/ZipPackageEntry.hxx @@ -59,11 +59,11 @@ public: ZipPackageEntry(); virtual ~ZipPackageEntry() override; - const OUString& GetMediaType () const { return msMediaType; } - void SetMediaType ( const OUString & sNewType) { msMediaType = sNewType; } - void doSetParent ( ZipPackageFolder * pNewParent ); - bool IsFolder ( ) { return mbIsFolder; } - void SetFolder ( bool bSetFolder ) { mbIsFolder = bSetFolder; } + const OUString& GetMediaType() const { return msMediaType; } + void SetMediaType(const OUString & sNewType) { msMediaType = sNewType; } + void doSetParent(ZipPackageFolder * pNewParent); + bool IsFolder() const { return mbIsFolder; } + void SetFolder(const bool bSetFolder) { mbIsFolder = bSetFolder; } virtual bool saveChild( const OUString &rPath, std::vector < css::uno::Sequence < css::beans::PropertyValue > > &rManList, diff --git a/package/source/zippackage/ZipPackage.cxx b/package/source/zippackage/ZipPackage.cxx index aa5ae86b27d8..a67c90108481 100644 --- a/package/source/zippackage/ZipPackage.cxx +++ b/package/source/zippackage/ZipPackage.cxx @@ -1223,7 +1223,7 @@ uno::Reference< io::XInputStream > ZipPackage::writeTempFile() // Remove the old manifest.xml file as the // manifest will be re-generated and the // META-INF directory implicitly created if does not exist - const OUString sMeta ("META-INF"); + static const OUString sMeta ("META-INF"); if ( m_xRootFolder->hasByName( sMeta ) ) { @@ -1245,7 +1245,7 @@ uno::Reference< io::XInputStream > ZipPackage::writeTempFile() // Remove the old [Content_Types].xml file as the // file will be re-generated - const OUString aContentTypes("[Content_Types].xml"); + static const OUString aContentTypes("[Content_Types].xml"); if ( m_xRootFolder->hasByName( aContentTypes ) ) m_xRootFolder->removeByName( aContentTypes ); @@ -1254,9 +1254,9 @@ uno::Reference< io::XInputStream > ZipPackage::writeTempFile() // Create a vector to store data for the manifest.xml file vector < uno::Sequence < PropertyValue > > aManList; - const OUString sMediaType ("MediaType"); - const OUString sVersion ("Version"); - const OUString sFullPath ("FullPath"); + static const OUString sMediaType("MediaType"); + static const OUString sVersion("Version"); + static const OUString sFullPath("FullPath"); const bool bIsGpgEncrypt = m_aGpgProps.hasElements(); if ( m_nFormat == embed::StorageFormats::PACKAGE ) |