summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-06-17 19:40:58 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-06-17 19:40:58 +0200
commitbb1e59d596ffa29d40b4538e18a08e5e91d469a9 (patch)
treeebc795d45b683f7268788f57db7baa3ddfb9285e /sc
parent45c2410041c48c22bd860efb42d4daadad7869b0 (diff)
Simplify OPropertyContainerHelper::registerPropertyNoMember's _pInitialValue
Change-Id: Ibfb27b3eded45e2646dada37ce3663f427985ae9
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/unoobj/celllistsource.cxx5
-rw-r--r--sc/source/ui/unoobj/cellvaluebinding.cxx5
-rw-r--r--sc/source/ui/unoobj/chartuno.cxx4
3 files changed, 6 insertions, 8 deletions
diff --git a/sc/source/ui/unoobj/celllistsource.cxx b/sc/source/ui/unoobj/celllistsource.cxx
index f6908f2c2cf6..b00ea8a014de 100644
--- a/sc/source/ui/unoobj/celllistsource.cxx
+++ b/sc/source/ui/unoobj/celllistsource.cxx
@@ -52,13 +52,12 @@ namespace calc
OSL_PRECOND( m_xDocument.is(), "OCellListSource::OCellListSource: invalid document!" );
// register our property at the base class
- CellRangeAddress aInitialPropValue;
registerPropertyNoMember(
"CellRange",
PROP_HANDLE_RANGE_ADDRESS,
PropertyAttribute::BOUND | PropertyAttribute::READONLY,
- cppu::UnoType<decltype(aInitialPropValue)>::get(),
- &aInitialPropValue
+ cppu::UnoType<CellRangeAddress>::get(),
+ css::uno::Any(CellRangeAddress())
);
}
diff --git a/sc/source/ui/unoobj/cellvaluebinding.cxx b/sc/source/ui/unoobj/cellvaluebinding.cxx
index a03941394566..3b301d043372 100644
--- a/sc/source/ui/unoobj/cellvaluebinding.cxx
+++ b/sc/source/ui/unoobj/cellvaluebinding.cxx
@@ -56,13 +56,12 @@ namespace calc
,m_bListPos( _bListPos )
{
// register our property at the base class
- CellAddress aInitialPropValue;
registerPropertyNoMember(
"BoundCell",
PROP_HANDLE_BOUND_CELL,
PropertyAttribute::BOUND | PropertyAttribute::READONLY,
- cppu::UnoType<decltype(aInitialPropValue)>::get(),
- &aInitialPropValue
+ cppu::UnoType<CellAddress>::get(),
+ css::uno::Any(CellAddress())
);
// TODO: implement a ReadOnly property as required by the service,
diff --git a/sc/source/ui/unoobj/chartuno.cxx b/sc/source/ui/unoobj/chartuno.cxx
index 9809f4bdadc1..b974560f7a9b 100644
--- a/sc/source/ui/unoobj/chartuno.cxx
+++ b/sc/source/ui/unoobj/chartuno.cxx
@@ -450,10 +450,10 @@ ScChartObj::ScChartObj(ScDocShell* pDocSh, SCTAB nT, const OUString& rN)
{
pDocShell->GetDocument().AddUnoObject(*this);
- uno::Sequence< table::CellRangeAddress > aInitialPropValue;
registerPropertyNoMember( "RelatedCellRanges",
PROP_HANDLE_RELATED_CELLRANGES, beans::PropertyAttribute::MAYBEVOID,
- cppu::UnoType<decltype(aInitialPropValue)>::get(), &aInitialPropValue );
+ cppu::UnoType<uno::Sequence<table::CellRangeAddress>>::get(),
+ css::uno::Any(uno::Sequence<table::CellRangeAddress>()) );
}
ScChartObj::~ScChartObj()