From ab3d2e568fe1595584c66c2ff07843e72f608944 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 3 May 2016 15:19:21 +0200 Subject: Prevent Any ctor from reinterpreting bool* as sal_Bool* ...which only happens to work in environments where sizeof (bool) == 1. The simpler alternative is to use the Any ctor template without passing explicit UNO type information, anyway. The std::nullptr_t overloads are needed to disambiguate calls with a nullptr argument. (Which can at least be meaningful for VOID, but for other types what it happens to do is store a default value of the given type.) As std::nullptr_t is only C++11, this all needs to be LIBO_INTERNAL_ONLY. Change-Id: I0f72c73a088ef96e069c3ed8c78546b16d89b50a --- sc/source/core/data/dpsave.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc') diff --git a/sc/source/core/data/dpsave.cxx b/sc/source/core/data/dpsave.cxx index 20c3488f524e..15920edf3554 100644 --- a/sc/source/core/data/dpsave.cxx +++ b/sc/source/core/data/dpsave.cxx @@ -64,7 +64,7 @@ static void lcl_SetBoolProperty( const uno::Reference& xPro { //TODO: move to ScUnoHelpFunctions? - xProp->setPropertyValue( rName, uno::Any( &bValue, cppu::UnoType::get() ) ); + xProp->setPropertyValue( rName, uno::Any( bValue ) ); } ScDPSaveMember::ScDPSaveMember(const OUString& rName) : -- cgit