summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorArnold Dumas <arnold@dumas.at>2016-02-15 22:32:15 +0100
committerNoel Grandin <noelgrandin@gmail.com>2016-02-16 12:47:55 +0000
commitfd3cb8d8222113cbc7bf472060ac77233706ea1f (patch)
tree18101abe775445d30e6c0db6d131b4dc280bee55 /basic
parentab199e4748b45384602479c735dbac538e714d34 (diff)
tdf#39440: reduce scope of local variables
Change-Id: I6ba411d2e07240821518281996d543f71acf3259 Reviewed-on: https://gerrit.libreoffice.org/22378 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/sbx/sbxdec.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/basic/source/sbx/sbxdec.cxx b/basic/source/sbx/sbxdec.cxx
index 1616771bc4c3..b073ea12dc2d 100644
--- a/basic/source/sbx/sbxdec.cxx
+++ b/basic/source/sbx/sbxdec.cxx
@@ -354,15 +354,12 @@ void SbxDecimal::getString( OUString& rString )
#ifdef _WIN32
static LCID nLANGID = MAKELANGID( LANG_ENGLISH, SUBLANG_ENGLISH_US );
- bool bRet = false;
-
OLECHAR sz[100];
BSTR aBStr = SysAllocString( sz );
if( aBStr != NULL )
{
HRESULT hResult = VarBstrFromDec( &maDec, nLANGID, 0, &aBStr );
- bRet = ( hResult == S_OK );
- if( bRet )
+ if( hResult == S_OK )
{
// Convert delimiter
sal_Unicode cDecimalSep;