summaryrefslogtreecommitdiff
path: root/unotools/source/streaming/streamhelper.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:12:36 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:12:36 +0100
commitb7f0446d78923c46ab604ccaf48970a6b405ba5e (patch)
tree1ec06811d63d2ef0d10c54cd63cdf94dd90a6df0 /unotools/source/streaming/streamhelper.cxx
parentd9384ef6e42419ecb77590c785eadf69e3d43428 (diff)
More loplugin:cstylecast: unotools
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I40a3ff5a436766f8d16f154eff2726b4873a0eb1
Diffstat (limited to 'unotools/source/streaming/streamhelper.cxx')
-rw-r--r--unotools/source/streaming/streamhelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/unotools/source/streaming/streamhelper.cxx b/unotools/source/streaming/streamhelper.cxx
index f77e2a604e33..893384ff7525 100644
--- a/unotools/source/streaming/streamhelper.cxx
+++ b/unotools/source/streaming/streamhelper.cxx
@@ -47,7 +47,7 @@ sal_Int32 SAL_CALL OInputStreamHelper::readBytes(css::uno::Sequence< sal_Int8 >&
throw css::io::IOException(OUString(), static_cast<css::uno::XWeak*>(this));
// adjust sequence if data read is lower than the desired data
- if (nRead < (std::size_t)aData.getLength())
+ if (nRead < static_cast<std::size_t>(aData.getLength()))
aData.realloc( nRead );
return nRead;