diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-18 14:24:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-19 11:57:57 +0100 |
commit | a5be07d6b627a18f104e2feed063ff9020e8c610 (patch) | |
tree | 389ea7a3c163bcafca743373b94cda4fba937552 /ucb | |
parent | b0cecbfb03dba67f01d1411a1e8b7402c2ca90ce (diff) |
inline use-once typedefs
Change-Id: I5c3ffc03c26b3428f1f336e6ecba7838a1cf1157
Reviewed-on: https://gerrit.libreoffice.org/46764
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/file/filrset.hxx | 3 | ||||
-rw-r--r-- | ucb/source/ucp/package/pkgprovider.cxx | 5 | ||||
-rw-r--r-- | ucb/source/ucp/webdav/webdavresponseparser.cxx | 3 |
3 files changed, 3 insertions, 8 deletions
diff --git a/ucb/source/ucp/file/filrset.hxx b/ucb/source/ucp/file/filrset.hxx index 87faa5dff7b7..22f77d574891 100644 --- a/ucb/source/ucp/file/filrset.hxx +++ b/ucb/source/ucp/file/filrset.hxx @@ -427,11 +427,10 @@ class XResultSet_impl : public Notifier, typedef std::vector< css::uno::Reference< css::ucb::XContentIdentifier > > IdentSet; typedef std::vector< css::uno::Reference< css::sdbc::XRow > > ItemSet; - typedef std::vector< OUString > UnqPathSet; IdentSet m_aIdents; ItemSet m_aItems; - UnqPathSet m_aUnqPath; + std::vector< OUString > m_aUnqPath; const OUString m_aBaseDirectory; osl::Directory m_aFolder; diff --git a/ucb/source/ucp/package/pkgprovider.cxx b/ucb/source/ucp/package/pkgprovider.cxx index 912e1fdb7d8b..ddc3ba5d8210 100644 --- a/ucb/source/ucp/package/pkgprovider.cxx +++ b/ucb/source/ucp/package/pkgprovider.cxx @@ -81,10 +81,7 @@ public: }; -// Packages. -typedef std::unordered_map<OUString, Package*> PackageMap; - -class Packages : public PackageMap {}; +class Packages : public std::unordered_map<OUString, Package*> {}; } diff --git a/ucb/source/ucp/webdav/webdavresponseparser.cxx b/ucb/source/ucp/webdav/webdavresponseparser.cxx index 25b99d74252b..92f4d8b187bc 100644 --- a/ucb/source/ucp/webdav/webdavresponseparser.cxx +++ b/ucb/source/ucp/webdav/webdavresponseparser.cxx @@ -146,7 +146,6 @@ namespace namespace { typedef std::map< OUString, OUString > NamespaceMap; - typedef std::pair< const OUString, OUString > NamespaceValueType; class WebDAVContext { @@ -198,7 +197,7 @@ namespace { const OUString aToken(aName.copy(nIndex + 1)); - maNamespaceMap.insert(NamespaceValueType(aToken, xAttribs->getValueByIndex(a))); + maNamespaceMap.emplace(aToken, xAttribs->getValueByIndex(a)); } } } |