summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-01-28 15:44:38 +0200
committerNoel Grandin <noel@peralex.com>2016-01-29 10:54:23 +0200
commite76b00978187486876cdc2adde14ef5043b2a9b0 (patch)
tree2a84ad1a4c7ac2a366b731a0e0bf8aea12f222f6 /comphelper
parent31f12941635f52d34497b9af1361c0e81906762d (diff)
sequence->vector in OInteractionRequest
Change-Id: I995cb96e514e1aaa05a96f29344ef51e4ca83c64
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/interaction.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/comphelper/source/misc/interaction.cxx b/comphelper/source/misc/interaction.cxx
index d16aed741ccd..745320e523f2 100644
--- a/comphelper/source/misc/interaction.cxx
+++ b/comphelper/source/misc/interaction.cxx
@@ -45,7 +45,7 @@ namespace comphelper
}
OInteractionRequest::OInteractionRequest(const Any& rRequestDescription,
- Sequence<Reference<XInteractionContinuation>> const& rContinuations)
+ std::vector<Reference<XInteractionContinuation>> const& rContinuations)
: m_aRequest(rRequestDescription)
, m_aContinuations(rContinuations)
{
@@ -56,9 +56,7 @@ namespace comphelper
OSL_ENSURE(_rxContinuation.is(), "OInteractionRequest::addContinuation: invalid argument!");
if (_rxContinuation.is())
{
- sal_Int32 nOldLen = m_aContinuations.getLength();
- m_aContinuations.realloc(nOldLen + 1);
- m_aContinuations[nOldLen] = _rxContinuation;
+ m_aContinuations.push_back(_rxContinuation);
}
}
@@ -71,7 +69,7 @@ namespace comphelper
Sequence< Reference< XInteractionContinuation > > SAL_CALL OInteractionRequest::getContinuations( ) throw(RuntimeException, std::exception)
{
- return m_aContinuations;
+ return comphelper::containerToSequence(m_aContinuations);
}