From dc1858783e72bba808dbd87b5b03d5170449ad52 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Sat, 27 Oct 2018 03:16:18 +0300 Subject: tdf#120703 (PVS): V519 The variable is assigned values twice successively Change-Id: I9265425a215609ef6bf4298ba39c8399f215ce27 Reviewed-on: https://gerrit.libreoffice.org/62406 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- vbahelper/source/vbahelper/vbacommandbar.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vbahelper') diff --git a/vbahelper/source/vbahelper/vbacommandbar.cxx b/vbahelper/source/vbahelper/vbacommandbar.cxx index afa1fa45c939..41b325151492 100644 --- a/vbahelper/source/vbahelper/vbacommandbar.cxx +++ b/vbahelper/source/vbahelper/vbacommandbar.cxx @@ -162,8 +162,8 @@ sal_Int32 SAL_CALL ScVbaCommandBar::Type() { // #FIXME support msoBarTypePopup - sal_Int32 nType = office::MsoBarType::msoBarTypePopup; - nType = m_bIsMenu? office::MsoBarType::msoBarTypeNormal : office::MsoBarType::msoBarTypeMenuBar; + sal_Int32 nType + = m_bIsMenu ? office::MsoBarType::msoBarTypeNormal : office::MsoBarType::msoBarTypeMenuBar; return nType; } -- cgit