summaryrefslogtreecommitdiff
path: root/xmloff/source/text/txtstyli.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-06-10 15:52:05 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-06-10 15:52:05 +0200
commit8132d7f9d71d9f6418855d2d6241dae804beeb8b (patch)
tree7394f094265efdfaaa4ce02ce287da39c1a43f1a /xmloff/source/text/txtstyli.cxx
parent285744fef87f4ca0278834b97d7f618bdba5f4c0 (diff)
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
Diffstat (limited to 'xmloff/source/text/txtstyli.cxx')
-rw-r--r--xmloff/source/text/txtstyli.cxx2
1 files changed, 1 insertions, 1 deletions
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<bool>(rAny);
+ bool bVal = *o3tl::doAccess<bool>(rAny);
bHasCombinedCharactersLetter = bVal;
}