summaryrefslogtreecommitdiff
path: root/desktop/source/deployment/manager/dp_informationprovider.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/source/deployment/manager/dp_informationprovider.cxx')
-rw-r--r--desktop/source/deployment/manager/dp_informationprovider.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/desktop/source/deployment/manager/dp_informationprovider.cxx b/desktop/source/deployment/manager/dp_informationprovider.cxx
index 738600556dd9..5b6d6a92b947 100644
--- a/desktop/source/deployment/manager/dp_informationprovider.cxx
+++ b/desktop/source/deployment/manager/dp_informationprovider.cxx
@@ -36,7 +36,7 @@
#include <com/sun/star/uno/Reference.hxx>
#include <osl/diagnose.h>
#include <rtl/ustring.hxx>
-#include <tools/diagnose_ex.h>
+#include <comphelper/diagnose_ex.hxx>
#include <ucbhelper/content.hxx>
#include <dp_dependencies.hxx>
@@ -275,7 +275,7 @@ PackageInformationProvider::isUpdateAvailable( const OUString& _sExtensionId )
aNewEntry[0] = updateInfo.first;
aNewEntry[1] = updateVersion;
aList.realloc( ++nCount );
- aList[ nCount-1 ] = ::uno::Sequence< OUString >( aNewEntry, 2 );
+ aList.getArray()[ nCount-1 ] = ::uno::Sequence< OUString >( aNewEntry, 2 );
}
}
return aList;
@@ -299,6 +299,7 @@ uno::Sequence< uno::Sequence< OUString > > SAL_CALL PackageInformationProvider::
sal_Int32 cAllIds = allExt.getLength();
retList.realloc(cAllIds);
+ auto pretList = retList.getArray();
for (sal_Int32 i = 0; i < cAllIds; i++)
{
@@ -315,10 +316,7 @@ uno::Sequence< uno::Sequence< OUString > > SAL_CALL PackageInformationProvider::
uno::Reference< deployment::XPackage > const & xExtension( seqExtension[j] );
if (xExtension.is())
{
- OUString aNewEntry[2];
- aNewEntry[0] = dp_misc::getIdentifier(xExtension);
- aNewEntry[1] = xExtension->getVersion();
- retList[i] = ::uno::Sequence< OUString >( aNewEntry, 2 );
+ pretList[i] = { dp_misc::getIdentifier(xExtension), xExtension->getVersion() };
break;
}
}