diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-08-25 19:09:39 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-08-29 17:40:35 +0200 |
commit | 5d622c55ef776f31ec8a0a5dfcbbadd03c35e5a1 (patch) | |
tree | 6c5ecbe9fa07e41941a73f2705b2d12c3e8b9045 /svtools | |
parent | 0c092af2eb5f07fa18ea53b5dbe344fccda4389b (diff) |
cache the call to getenv
Change-Id: I13095b13694aa092e3d5f542b5be12e703eb4590
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/misc/embedhlp.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svtools/source/misc/embedhlp.cxx b/svtools/source/misc/embedhlp.cxx index e4218fc53313..d320b30ffec7 100644 --- a/svtools/source/misc/embedhlp.cxx +++ b/svtools/source/misc/embedhlp.cxx @@ -803,7 +803,8 @@ bool EmbeddedObjectRef::IsChart(const ::com::sun::star::uno::Reference < ::com:: bool EmbeddedObjectRef::IsGLChart(const ::com::sun::star::uno::Reference < ::com::sun::star::embed::XEmbeddedObject >& xObj) { - return IsChart(xObj) && getenv("CHART_DUMMY_FACTORY"); + static const char* env = getenv("CHART_DUMMY_FACTORY"); + return IsChart(xObj) && env; } void EmbeddedObjectRef::UpdateReplacement() |