Kaydet (Commit) 5d622c55 authored tarafından Markus Mohrhard's avatar Markus Mohrhard Kaydeden (comit) Markus Mohrhard

cache the call to getenv

Change-Id: I13095b13694aa092e3d5f542b5be12e703eb4590
üst 0c092af2
...@@ -803,7 +803,8 @@ bool EmbeddedObjectRef::IsChart(const ::com::sun::star::uno::Reference < ::com:: ...@@ -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) 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() void EmbeddedObjectRef::UpdateReplacement()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment