diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-11-30 18:33:21 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-12-10 21:12:20 +0000 |
commit | 8aac6ecc58fa2c475f34817e607efb6a31317898 (patch) | |
tree | f54e8b33783d244518c073d0615f054b8e468774 /sw/source/core/unocore/unodraw.cxx | |
parent | 5f77059ff156ecbd69967f278d3e8f814c15958e (diff) |
Use Any specializations for bool, instead of SetValue
Change-Id: I7a5babe494bdb09a71164ea74d7be3f6bf985ff6
Reviewed-on: https://gerrit.libreoffice.org/13215
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sw/source/core/unocore/unodraw.cxx')
-rw-r--r-- | sw/source/core/unocore/unodraw.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx index 0482df5324b0..ea0dd24ba90e 100644 --- a/sw/source/core/unocore/unodraw.cxx +++ b/sw/source/core/unocore/unodraw.cxx @@ -1515,10 +1515,9 @@ uno::Any SwXShape::getPropertyValue(const OUString& rPropertyName) { SdrObject* pObj = pSvxShape->GetSdrObject(); // consider invisible layers - sal_Bool bOpaque = + aRet <<= ( pObj->GetLayer() != pFmt->GetDoc()->getIDocumentDrawModelAccess().GetHellId() && pObj->GetLayer() != pFmt->GetDoc()->getIDocumentDrawModelAccess().GetInvisibleHellId() ); - aRet.setValue(&bOpaque, ::getBooleanCppuType()); } } else if(FN_ANCHOR_POSITION == pEntry->nWID) @@ -1669,7 +1668,7 @@ uno::Any SwXShape::getPropertyValue(const OUString& rPropertyName) aRet.setValue(&pImpl->GetTextRange(), cppu::UnoType<text::XTextRange>::get()); break; case RES_OPAQUE : - aRet.setValue(&pImpl->GetOpaque(), ::getBooleanCppuType()); + aRet <<= pImpl->GetOpaque(); break; case FN_ANCHOR_POSITION : { |