[Libreoffice-commits] core.git: sc/source
Jochen Nitschke
j.nitschke+logerrit at ok.de
Tue Jul 26 08:39:30 UTC 2016
sc/source/ui/unoobj/cellsuno.cxx | 24 ++++++------------------
1 file changed, 6 insertions(+), 18 deletions(-)
New commits:
commit 3686a811372352414d91d19a094be9f3f8f21a0f
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date: Sat Jul 23 21:20:30 2016 +0200
sc: replace GetScenarioData() calls with GetScenarioFlags()
if only the scenario flags are needed
Change-Id: I9bda31250a8bbd83dda2fabb1d9eaaab90584052
Reviewed-on: https://gerrit.libreoffice.org/27465
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit at ok.de>
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx
index 76a64ec..9162faa 100644
--- a/sc/source/ui/unoobj/cellsuno.cxx
+++ b/sc/source/ui/unoobj/cellsuno.cxx
@@ -8503,10 +8503,8 @@ void ScTableSheetObj::GetOnePropertyValue( const SfxItemPropertySimpleEntry* pEn
{
if (rDoc.IsScenario(nTab))
{
- OUString aComment;
- Color aColor;
ScScenarioFlags nFlags;
- rDoc.GetScenarioData( nTab, aComment, aColor, nFlags );
+ rDoc.GetScenarioFlags(nTab, nFlags);
rAny <<= ((nFlags & ScScenarioFlags::Protected) != ScScenarioFlags::NONE);
}
@@ -8515,10 +8513,8 @@ void ScTableSheetObj::GetOnePropertyValue( const SfxItemPropertySimpleEntry* pEn
{
if (rDoc.IsScenario(nTab))
{
- OUString aComment;
- Color aColor;
ScScenarioFlags nFlags;
- rDoc.GetScenarioData( nTab, aComment, aColor, nFlags );
+ rDoc.GetScenarioFlags(nTab, nFlags);
rAny <<= ((nFlags & ScScenarioFlags::ShowFrame) != ScScenarioFlags::NONE);
}
@@ -8527,10 +8523,8 @@ void ScTableSheetObj::GetOnePropertyValue( const SfxItemPropertySimpleEntry* pEn
{
if (rDoc.IsScenario(nTab))
{
- OUString aComment;
- Color aColor;
ScScenarioFlags nFlags;
- rDoc.GetScenarioData( nTab, aComment, aColor, nFlags );
+ rDoc.GetScenarioFlags(nTab, nFlags);
rAny <<= ((nFlags & ScScenarioFlags::PrintFrame) != ScScenarioFlags::NONE);
}
@@ -8539,10 +8533,8 @@ void ScTableSheetObj::GetOnePropertyValue( const SfxItemPropertySimpleEntry* pEn
{
if (rDoc.IsScenario(nTab))
{
- OUString aComment;
- Color aColor;
ScScenarioFlags nFlags;
- rDoc.GetScenarioData( nTab, aComment, aColor, nFlags );
+ rDoc.GetScenarioFlags(nTab, nFlags);
rAny <<= ((nFlags & ScScenarioFlags::TwoWay) != ScScenarioFlags::NONE);
}
@@ -8551,10 +8543,8 @@ void ScTableSheetObj::GetOnePropertyValue( const SfxItemPropertySimpleEntry* pEn
{
if (rDoc.IsScenario(nTab))
{
- OUString aComment;
- Color aColor;
ScScenarioFlags nFlags;
- rDoc.GetScenarioData( nTab, aComment, aColor, nFlags );
+ rDoc.GetScenarioFlags(nTab, nFlags);
rAny <<= ((nFlags & ScScenarioFlags::Attrib) != ScScenarioFlags::NONE);
}
@@ -8563,10 +8553,8 @@ void ScTableSheetObj::GetOnePropertyValue( const SfxItemPropertySimpleEntry* pEn
{
if (rDoc.IsScenario(nTab))
{
- OUString aComment;
- Color aColor;
ScScenarioFlags nFlags;
- rDoc.GetScenarioData( nTab, aComment, aColor, nFlags );
+ rDoc.GetScenarioFlags(nTab, nFlags);
rAny <<= !(nFlags & ScScenarioFlags::Value);
}
More information about the Libreoffice-commits
mailing list