summaryrefslogtreecommitdiff
path: root/configmgr/source/access.cxx
diff options
context:
space:
mode:
authorsb <sb@openoffice.org>2009-11-11 13:51:17 +0100
committersb <sb@openoffice.org>2009-11-11 13:51:17 +0100
commit2e960eb1926080f6f98a3a7e886a45725eac7fe4 (patch)
treebb88a70b7ba01e82ba0ce9cdece3993eb53b4542 /configmgr/source/access.cxx
parent291b6d7e3b09ede5a589d5baf4c0effa13414e02 (diff)
sb111: #i101955# fixed and cleaned up handling of oor:types of prop values
Diffstat (limited to 'configmgr/source/access.cxx')
-rw-r--r--configmgr/source/access.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/configmgr/source/access.cxx b/configmgr/source/access.cxx
index 032c3703c0ce..55d32f5d8ee9 100644
--- a/configmgr/source/access.cxx
+++ b/configmgr/source/access.cxx
@@ -361,7 +361,7 @@ void Access::checkValue(css::uno::Any const & value, Type type, bool nillable) {
ok = false;
break;
case TYPE_ANY:
- switch (mapType(value)) {
+ switch (getDynamicType(value)) {
case TYPE_ANY:
OSL_ASSERT(false);
// fall through (cannot happen)
@@ -396,7 +396,7 @@ void Access::insertLocalizedValueChild(
OSL_ASSERT(localModifications != 0);
LocalizedPropertyNode * locprop = dynamic_cast< LocalizedPropertyNode * >(
getNode().get());
- checkValue(value, locprop->getType(), locprop->isNillable());
+ checkValue(value, locprop->getStaticType(), locprop->isNillable());
rtl::Reference< ChildAccess > child(
new ChildAccess(
components_, getRootAccess(), this, name,
@@ -1056,7 +1056,7 @@ css::uno::Type Access::getElementType() throw (css::uno::RuntimeException) {
switch (p->kind()) {
case Node::KIND_LOCALIZED_PROPERTY:
return mapType(
- dynamic_cast< LocalizedPropertyNode * >(p.get())->getType());
+ dynamic_cast< LocalizedPropertyNode * >(p.get())->getStaticType());
case Node::KIND_GROUP:
//TODO: Should a specific type be returned for a non-extensible group
// with homogeneous members or for an extensible group that currently
@@ -2041,7 +2041,7 @@ css::beans::Property Access::asProperty() {
case Node::KIND_PROPERTY:
{
PropertyNode * prop = dynamic_cast< PropertyNode * >(p.get());
- type = mapType(prop->getType());
+ type = mapType(prop->getStaticType());
nillable = prop->isNillable();
removable = prop->isExtension();
}
@@ -2055,7 +2055,7 @@ css::beans::Property Access::asProperty() {
//TODO: correct?
removable = false;
} else {
- type = mapType(locprop->getType());
+ type = mapType(locprop->getStaticType());
removable = false; //TODO ???
}
nillable = locprop->isNillable();
@@ -2065,7 +2065,7 @@ css::beans::Property Access::asProperty() {
{
LocalizedPropertyNode * locprop =
dynamic_cast< LocalizedPropertyNode * >(getParentNode().get());
- type = mapType(locprop->getType());
+ type = mapType(locprop->getStaticType());
nillable = locprop->isNillable();
removable = false; //TODO ???
}