summaryrefslogtreecommitdiff
path: root/unotools/source/config/configitem.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unotools/source/config/configitem.cxx')
-rw-r--r--unotools/source/config/configitem.cxx28
1 files changed, 14 insertions, 14 deletions
diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx
index a830e8d249e6..9b4ed5f8ef1e 100644
--- a/unotools/source/config/configitem.cxx
+++ b/unotools/source/config/configitem.cxx
@@ -392,20 +392,20 @@ Sequence< sal_Bool > ConfigItem::GetReadOnlyStates(const com::sun::star::uno::Se
}
else
{
- xNode = Reference<XInterface>( xHierarchyAccess, UNO_QUERY );
+ xNode.set( xHierarchyAccess, UNO_QUERY );
}
- xSet = Reference< XPropertySet >(xNode, UNO_QUERY);
+ xSet.set(xNode, UNO_QUERY);
if (xSet.is())
- {
- xInfo = xSet->getPropertySetInfo();
+ {
+ xInfo = xSet->getPropertySetInfo();
OSL_ENSURE(xInfo.is(), "ConfigItem::IsReadonly()\ngetPropertySetInfo failed ...\n");
- }
+ }
else
- {
- xInfo = Reference< XPropertySetInfo >(xNode, UNO_QUERY);
+ {
+ xInfo.set(xNode, UNO_QUERY);
OSL_ENSURE(xInfo.is(), "ConfigItem::IsReadonly()\nUNO_QUERY failed ...\n");
- }
+ }
if (!xInfo.is())
{
@@ -680,7 +680,7 @@ Sequence< OUString > ConfigItem::GetNodeNames(const OUString& rNode, ConfigNameF
aNode >>= xCont;
}
else
- xCont = Reference<XNameAccess> (xHierarchyAccess, UNO_QUERY);
+ xCont.set(xHierarchyAccess, UNO_QUERY);
if(xCont.is())
{
aRet = xCont->getElementNames();
@@ -709,7 +709,7 @@ bool ConfigItem::ClearNodeSet(const OUString& rNode)
aNode >>= xCont;
}
else
- xCont = Reference<XNameContainer> (xHierarchyAccess, UNO_QUERY);
+ xCont.set(xHierarchyAccess, UNO_QUERY);
if(!xCont.is())
return false;
Sequence< OUString > aNames = xCont->getElementNames();
@@ -748,7 +748,7 @@ bool ConfigItem::ClearNodeElements(const OUString& rNode, Sequence< OUString >&
aNode >>= xCont;
}
else
- xCont = Reference<XNameContainer> (xHierarchyAccess, UNO_QUERY);
+ xCont.set(xHierarchyAccess, UNO_QUERY);
if(!xCont.is())
return false;
try
@@ -822,7 +822,7 @@ bool ConfigItem::SetSetProperties(
aNode >>= xCont;
}
else
- xCont = Reference<XNameContainer> (xHierarchyAccess, UNO_QUERY);
+ xCont.set(xHierarchyAccess, UNO_QUERY);
if(!xCont.is())
return false;
@@ -921,7 +921,7 @@ bool ConfigItem::ReplaceSetProperties(
aNode >>= xCont;
}
else
- xCont = Reference<XNameContainer> (xHierarchyAccess, UNO_QUERY);
+ xCont.set(xHierarchyAccess, UNO_QUERY);
if(!xCont.is())
return false;
@@ -1058,7 +1058,7 @@ bool ConfigItem::AddNode(const OUString& rNode, const OUString& rNewNode)
aNode >>= xCont;
}
else
- xCont = Reference<XNameContainer> (xHierarchyAccess, UNO_QUERY);
+ xCont.set(xHierarchyAccess, UNO_QUERY);
if(!xCont.is())
return false;