summaryrefslogtreecommitdiff
path: root/include/comphelper/basicio.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/comphelper/basicio.hxx')
-rw-r--r--include/comphelper/basicio.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/comphelper/basicio.hxx b/include/comphelper/basicio.hxx
index 96e185d78838..62260e3da360 100644
--- a/include/comphelper/basicio.hxx
+++ b/include/comphelper/basicio.hxx
@@ -65,7 +65,7 @@ template <class ELEMENT>
const css::uno::Reference<css::io::XObjectInputStream>& operator >> (const css::uno::Reference<css::io::XObjectInputStream>& _rxInStream, css::uno::Sequence<ELEMENT>& _rSeq)
{
_rSeq.realloc(_rxInStream->readLong());
- for (ELEMENT& rElement : _rSeq)
+ for (ELEMENT& rElement : asNonConstRange(_rSeq))
_rxInStream >> rElement;
return _rxInStream;
}