[Libreoffice-commits] core.git: filter/source
Caolán McNamara
caolanm at redhat.com
Thu Oct 20 12:36:35 UTC 2016
filter/source/msfilter/mscodec.cxx | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
New commits:
commit fcf7f503b64b2cf7dbef019fb43dde033e3538e8
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Oct 20 11:19:58 2016 +0100
be more c++y
Change-Id: I673b00e111a734bc626ba3d3f6ecf9692f1ce7db
diff --git a/filter/source/msfilter/mscodec.cxx b/filter/source/msfilter/mscodec.cxx
index 39f4def..141e361 100644
--- a/filter/source/msfilter/mscodec.cxx
+++ b/filter/source/msfilter/mscodec.cxx
@@ -435,9 +435,7 @@ bool MSCodec_Std97::Encode (
const void *pData, std::size_t nDatLen,
sal_uInt8 *pBuffer, std::size_t nBufLen)
{
- rtlCipherError result;
-
- result = rtl_cipher_encode (
+ rtlCipherError result = rtl_cipher_encode(
m_hCipher, pData, nDatLen, pBuffer, nBufLen);
return (result == rtl_Cipher_E_None);
@@ -447,9 +445,7 @@ bool MSCodec_Std97::Decode (
const void *pData, std::size_t nDatLen,
sal_uInt8 *pBuffer, std::size_t nBufLen)
{
- rtlCipherError result;
-
- result = rtl_cipher_decode (
+ rtlCipherError result = rtl_cipher_decode(
m_hCipher, pData, nDatLen, pBuffer, nBufLen);
return (result == rtl_Cipher_E_None);
More information about the Libreoffice-commits
mailing list