From 8132d7f9d71d9f6418855d2d6241dae804beeb8b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 10 Jun 2016 15:52:05 +0200 Subject: o3tl::tryGet on a temporary is dangerous ...so rename to o3tl::tryAccess to make it more obvious that the returned proxy points into the internals of the given Any, and forbid calling o3tl::tryAccess on a temporary Change-Id: Ia412c6b2b06693811b9b7f0076a08bbf97142df9 --- xmloff/source/text/txtstyli.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmloff/source/text/txtstyli.cxx') diff --git a/xmloff/source/text/txtstyli.cxx b/xmloff/source/text/txtstyli.cxx index ccd3a4c8a39a..a1f147d99789 100644 --- a/xmloff/source/text/txtstyli.cxx +++ b/xmloff/source/text/txtstyli.cxx @@ -484,7 +484,7 @@ void XMLTextStyleContext::FillPropertySet( if ( nIndex != -1 ) { Any& rAny = GetProperties()[nIndex].maValue; - bool bVal = *o3tl::doGet(rAny); + bool bVal = *o3tl::doAccess(rAny); bHasCombinedCharactersLetter = bVal; } -- cgit