summaryrefslogtreecommitdiff
path: root/toolkit/source/controls/eventcontainer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/source/controls/eventcontainer.cxx')
-rw-r--r--toolkit/source/controls/eventcontainer.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolkit/source/controls/eventcontainer.cxx b/toolkit/source/controls/eventcontainer.cxx
index 8b495da657a3..418e3370431f 100644
--- a/toolkit/source/controls/eventcontainer.cxx
+++ b/toolkit/source/controls/eventcontainer.cxx
@@ -87,7 +87,7 @@ sal_Bool NameContainer_Impl::hasByName( const OUString& aName )
void NameContainer_Impl::replaceByName( const OUString& aName, const Any& aElement )
throw(IllegalArgumentException, NoSuchElementException, WrappedTargetException, RuntimeException, std::exception)
{
- Type aAnyType = aElement.getValueType();
+ const Type& aAnyType = aElement.getValueType();
if( mType != aAnyType )
throw IllegalArgumentException();
@@ -114,7 +114,7 @@ void NameContainer_Impl::replaceByName( const OUString& aName, const Any& aEleme
void NameContainer_Impl::insertByName( const OUString& aName, const Any& aElement )
throw(IllegalArgumentException, ElementExistException, WrappedTargetException, RuntimeException, std::exception)
{
- Type aAnyType = aElement.getValueType();
+ const Type& aAnyType = aElement.getValueType();
if( mType != aAnyType )
throw IllegalArgumentException();