summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2019-04-14 15:54:14 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2019-04-14 15:47:48 +0200
commit6154489314d2f2bf9cb99b72f15c79dd48a1da14 (patch)
treed9bbbc2e0233d417555109206bdb2d298ce838ac /sc/source/ui/unoobj
parenteb772683513f4f2b6c8e6404c29b8e477ffc7fad (diff)
tdf#120703 PVS: V581 ifs with identical conditions
V581 The conditional expressions of the 'if' statements situated alongside each other are identical. Change-Id: I18562d60e33c7ecff14807976dde4cbcae3f665b Reviewed-on: https://gerrit.libreoffice.org/70731 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sc/source/ui/unoobj')
-rw-r--r--sc/source/ui/unoobj/chart2uno.cxx14
1 files changed, 3 insertions, 11 deletions
diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx
index e859750f4fa1..a7b20ce1e03c 100644
--- a/sc/source/ui/unoobj/chart2uno.cxx
+++ b/sc/source/ui/unoobj/chart2uno.cxx
@@ -1869,23 +1869,15 @@ uno::Sequence< beans::PropertyValue > SAL_CALL ScChart2DataProvider::detectArgum
beans::PropertyState_DIRECT_VALUE );
}
- // DataRowSource (calculated before)
if( bRowSourceDetected )
{
+ // DataRowSource (calculated before)
aResult.emplace_back( "DataRowSource", -1,
uno::makeAny( eRowSource ), beans::PropertyState_DIRECT_VALUE );
- }
-
- // HasCategories
- if( bRowSourceDetected )
- {
+ // HasCategories
aResult.emplace_back( "HasCategories", -1,
uno::makeAny( bHasCategories ), beans::PropertyState_DIRECT_VALUE );
- }
-
- // FirstCellAsLabel
- if( bRowSourceDetected )
- {
+ // FirstCellAsLabel
aResult.emplace_back( "FirstCellAsLabel", -1,
uno::makeAny( bFirstCellAsLabel ), beans::PropertyState_DIRECT_VALUE );
}