INTEGRATION: CWS fwkfinal6 (1.2.46); FILE MERGED
2005/03/23 08:48:34 as 1.2.46.1: #i45787# check references to be more stable
This commit is contained in:
parent
1e7911cc05
commit
dc9b4e8bc8
1 changed files with 24 additions and 2 deletions
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: configurationhelper.cxx,v $
|
||||
*
|
||||
* $Revision: 1.2 $
|
||||
* $Revision: 1.3 $
|
||||
*
|
||||
* last change: $Author: obo $ $Date: 2004-11-17 13:39:56 $
|
||||
* last change: $Author: rt $ $Date: 2005-04-01 16:16:27 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -135,6 +135,17 @@ css::uno::Any ConfigurationHelper::readRelativeKey(const css::uno::Reference< cs
|
|||
|
||||
css::uno::Reference< css::beans::XPropertySet > xProps;
|
||||
xAccess->getByHierarchicalName(sRelPath) >>= xProps;
|
||||
if (!xProps.is())
|
||||
{
|
||||
::rtl::OUStringBuffer sMsg(256);
|
||||
sMsg.appendAscii("The requested path \"");
|
||||
sMsg.append (sRelPath );
|
||||
sMsg.appendAscii("\" does not exists." );
|
||||
|
||||
throw css::container::NoSuchElementException(
|
||||
sMsg.makeStringAndClear(),
|
||||
css::uno::Reference< css::uno::XInterface >());
|
||||
}
|
||||
return xProps->getPropertyValue(sKey);
|
||||
}
|
||||
|
||||
|
@ -148,6 +159,17 @@ void ConfigurationHelper::writeRelativeKey(const css::uno::Reference< css::uno::
|
|||
|
||||
css::uno::Reference< css::beans::XPropertySet > xProps;
|
||||
xAccess->getByHierarchicalName(sRelPath) >>= xProps;
|
||||
if (!xProps.is())
|
||||
{
|
||||
::rtl::OUStringBuffer sMsg(256);
|
||||
sMsg.appendAscii("The requested path \"");
|
||||
sMsg.append (sRelPath );
|
||||
sMsg.appendAscii("\" does not exists." );
|
||||
|
||||
throw css::container::NoSuchElementException(
|
||||
sMsg.makeStringAndClear(),
|
||||
css::uno::Reference< css::uno::XInterface >());
|
||||
}
|
||||
xProps->setPropertyValue(sKey, aValue);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue