From a5be07d6b627a18f104e2feed063ff9020e8c610 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 18 Dec 2017 14:24:50 +0200 Subject: inline use-once typedefs Change-Id: I5c3ffc03c26b3428f1f336e6ecba7838a1cf1157 Reviewed-on: https://gerrit.libreoffice.org/46764 Tested-by: Jenkins Reviewed-by: Noel Grandin --- comphelper/source/misc/backupfilehelper.cxx | 5 ++--- comphelper/source/property/propertycontainerhelper.cxx | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'comphelper') diff --git a/comphelper/source/misc/backupfilehelper.cxx b/comphelper/source/misc/backupfilehelper.cxx index 85d8b2052d44..70b8ee0c2a9f 100644 --- a/comphelper/source/misc/backupfilehelper.cxx +++ b/comphelper/source/misc/backupfilehelper.cxx @@ -1339,13 +1339,12 @@ namespace namespace { - typedef std::deque< PackedFileEntry > PackedFileEntryVector; - class PackedFile { private: const OUString maURL; - PackedFileEntryVector maPackedFileEntryVector; + std::deque< PackedFileEntry > + maPackedFileEntryVector; bool mbChanged; public: diff --git a/comphelper/source/property/propertycontainerhelper.cxx b/comphelper/source/property/propertycontainerhelper.cxx index 44a1c058d05c..1291f073c690 100644 --- a/comphelper/source/property/propertycontainerhelper.cxx +++ b/comphelper/source/property/propertycontainerhelper.cxx @@ -276,7 +276,7 @@ bool OPropertyContainerHelper::convertFastPropertyValue( { OSL_ENSURE(aPos->aLocation.nOwnClassVectorIndex < (sal_Int32)m_aHoldProperties.size(), "OPropertyContainerHelper::convertFastPropertyValue: invalid position !"); - PropertyContainerIterator aIter = m_aHoldProperties.begin() + aPos->aLocation.nOwnClassVectorIndex; + auto aIter = m_aHoldProperties.begin() + aPos->aLocation.nOwnClassVectorIndex; pPropContainer = &(*aIter); } else -- cgit