summaryrefslogtreecommitdiff
path: root/sal/qa/osl
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-05 09:28:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-05 14:41:59 +0200
commit8ec183056dd7a954d9af7b26432d7680a31e9896 (patch)
tree5d6e9a7ee435f3e9fc50b9b34373de1722f0f68b /sal/qa/osl
parentb65d21596b5773d744b242716a78308d2c3714d0 (diff)
loplugin:reducevarscope in sal
Change-Id: I2ce95de07b8e0952a1e778e65940b30597396aa6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103949 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sal/qa/osl')
-rw-r--r--sal/qa/osl/pipe/osl_Pipe.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sal/qa/osl/pipe/osl_Pipe.cxx b/sal/qa/osl/pipe/osl_Pipe.cxx
index f9e2bb16174e..eef77e998380 100644
--- a/sal/qa/osl/pipe/osl_Pipe.cxx
+++ b/sal/qa/osl/pipe/osl_Pipe.cxx
@@ -802,7 +802,6 @@ namespace osl_StreamPipe
void SAL_CALL run( ) override
{
//create pipe.
- sal_Int32 nChars;
printf("listen\n");
if ( !aListenPipe.is() )
{
@@ -819,7 +818,7 @@ namespace osl_StreamPipe
}
printf("write\n");
// write to pipe
- nChars = aConnectionPipe.write( m_pTestString1.getStr(), m_pTestString1.getLength() + 1 );
+ sal_Int32 nChars = aConnectionPipe.write( m_pTestString1.getStr(), m_pTestString1.getLength() + 1 );
if ( nChars < 0)
{
printf("server write failed! \n");