summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermedia.cpp
diff options
context:
space:
mode:
authorRick Pasetto <rick@lindenlab.com>2009-12-02 12:16:49 -0800
committerRick Pasetto <rick@lindenlab.com>2009-12-02 12:16:49 -0800
commit4c3d08b665800608b4597ec28cf84cfde5e65f88 (patch)
treec53f0183b2d3b1474dfbb1c362afb05ac4487fee /indra/newview/llviewermedia.cpp
parentb92fe4351c402759991c26510a2a35a3b4308999 (diff)
Minor changes from review feedback
get rid of thunk function
Diffstat (limited to 'indra/newview/llviewermedia.cpp')
-rw-r--r--indra/newview/llviewermedia.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/indra/newview/llviewermedia.cpp b/indra/newview/llviewermedia.cpp
index 0bee2e3abb..095430dcfc 100644
--- a/indra/newview/llviewermedia.cpp
+++ b/indra/newview/llviewermedia.cpp
@@ -628,7 +628,7 @@ static bool proximity_comparitor(const LLViewerMediaImpl* i1, const LLViewerMedi
//////////////////////////////////////////////////////////////////////////////////////////
// static
-void LLViewerMedia::updateMedia()
+void LLViewerMedia::updateMedia(void *dummy_arg)
{
impl_list::iterator iter = sViewerMediaImplList.begin();
impl_list::iterator end = sViewerMediaImplList.end();
@@ -799,24 +799,18 @@ void LLViewerMedia::updateMedia()
}
-// idle callback function...only here to provide a hop to updateMedia()
-static void llviewermedia_updatemedia_thunk(void*)
-{
- LLViewerMedia::updateMedia();
-}
-
//////////////////////////////////////////////////////////////////////////////////////////
// static
void LLViewerMedia::initClass()
{
- gIdleCallbacks.addFunction(llviewermedia_updatemedia_thunk, NULL);
+ gIdleCallbacks.addFunction(LLViewerMedia::updateMedia, NULL);
}
//////////////////////////////////////////////////////////////////////////////////////////
// static
void LLViewerMedia::cleanupClass()
{
- gIdleCallbacks.deleteFunction(llviewermedia_updatemedia_thunk, NULL);
+ gIdleCallbacks.deleteFunction(LLViewerMedia::updateMedia, NULL);
}
//////////////////////////////////////////////////////////////////////////////////////////