Kaydet (Commit) 8cd61007 authored tarafından Mike Kaganski's avatar Mike Kaganski

Cppcheck: reduce variable scope

Change-Id: I5660fe6ddc745894c1e36176f4aa38ad568f09ba
Reviewed-on: https://gerrit.libreoffice.org/60119
Tested-by: Jenkins
Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
üst e7a3329f
......@@ -40,14 +40,13 @@ void SAL_CALL rtl_byte_sequence_reference2One(
sal_Sequence ** ppSequence ) SAL_THROW_EXTERN_C()
{
sal_Sequence * pSequence, * pNew;
sal_Int32 nElements;
OSL_ENSURE( ppSequence, "### null ptr!" );
pSequence = *ppSequence;
if (pSequence->nRefCount > 1)
{
nElements = pSequence->nElements;
sal_Int32 nElements = pSequence->nElements;
if (nElements)
{
pNew = static_cast<sal_Sequence *>(malloc( SAL_SEQUENCE_HEADER_SIZE + nElements ));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment