summaryrefslogtreecommitdiff
path: root/vbahelper
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-10-18 12:56:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-19 19:28:18 +0000
commit7567a4c230625bbf922c52c861363f1cc4d6a1c7 (patch)
tree4fe8184d18021beb6c194cc899cec568db5c4ae1 /vbahelper
parent17cbea4159c369cc9324a67ab2f1aac9cf416476 (diff)
'>>=' with rhs Any is a copy assignment
replace '>>=' operator with '=' where return value is not checked and simplify. (note: switches lhs with rhs) Change-Id: I0d283e8786ea996ed80d7aa9d8a4ea930a3d52f8 Reviewed-on: https://gerrit.libreoffice.org/30004 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vbahelper')
-rw-r--r--vbahelper/source/vbahelper/vbahelper.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/vbahelper/source/vbahelper/vbahelper.cxx b/vbahelper/source/vbahelper/vbahelper.cxx
index 2c6249b0f28d..406cc847225c 100644
--- a/vbahelper/source/vbahelper/vbahelper.cxx
+++ b/vbahelper/source/vbahelper/vbahelper.cxx
@@ -753,16 +753,14 @@ void setDefaultPropByIntrospection( const uno::Any& aObj, const uno::Any& aValue
uno::Any getPropertyValue( const uno::Sequence< beans::PropertyValue >& aProp, const OUString& aName )
{
- uno::Any result;
for ( sal_Int32 i = 0; i < aProp.getLength(); i++ )
{
if ( aProp[i].Name.equals(aName) )
{
- aProp[i].Value >>= result;
- return result;
+ return aProp[i].Value;
}
}
- return result;
+ return uno::Any();
}
bool setPropertyValue( uno::Sequence< beans::PropertyValue >& aProp, const OUString& aName, const uno::Any& aValue )