summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cppu/source/uno/EnvStack.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/cppu/source/uno/EnvStack.cxx b/cppu/source/uno/EnvStack.cxx
index 0af0aafc17ea..d1ff2922233a 100644
--- a/cppu/source/uno/EnvStack.cxx
+++ b/cppu/source/uno/EnvStack.cxx
@@ -88,10 +88,7 @@ static void s_setCurrent(uno_Environment * pEnv)
rThreadMap[threadId] = pEnv;
else
- {
- ThreadMap::iterator iEnv = rThreadMap.find(threadId);
- rThreadMap.erase(iEnv);
- }
+ rThreadMap.erase(threadId);
}
static uno_Environment * s_getCurrent(void)