diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-03 08:39:03 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-05-04 12:39:40 +0200 |
commit | 58a32075ca4f457f570af75aef368dd6c389aca7 (patch) | |
tree | e437dcbdeb248b4316cb8a9281d1543419853f6d /linguistic | |
parent | 7d47700972d267fe7c5270c5dadd45a523a2baec (diff) |
use Any constructor instead of temporaries
Change-Id: Iffb82a2cee1a28d89eeea2b905aaa14086ee475a
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/convdiclist.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/linguistic/source/convdiclist.cxx b/linguistic/source/convdiclist.cxx index 8394c59d0589..88b10d064234 100644 --- a/linguistic/source/convdiclist.cxx +++ b/linguistic/source/convdiclist.cxx @@ -328,9 +328,7 @@ void ConvDicNameContainer::AddConvDics( if (xDic.is()) { - uno::Any aAny; - aAny <<= xDic; - insertByName( xDic->getName(), aAny ); + insertByName( xDic->getName(), Any(xDic) ); } } } @@ -455,9 +453,7 @@ uno::Reference< XConversionDictionary > SAL_CALL ConvDicList::addNewDictionary( else { xRes->setActive( true ); - uno::Any aAny; - aAny <<= xRes; - GetNameContainer().insertByName( rName, aAny ); + GetNameContainer().insertByName( rName, Any(xRes) ); } return xRes; } |