summaryrefslogtreecommitdiff
path: root/sapi/activescript/classfactory.cpp
diff options
context:
space:
mode:
authorHarald Radi <phanto@php.net>2002-05-20 15:38:19 +0000
committerHarald Radi <phanto@php.net>2002-05-20 15:38:19 +0000
commit02a13a4ec494101ce9219650fbdc63dbf885aa69 (patch)
tree8785e53ded7ea62f3df64541e5225376a8330c6f /sapi/activescript/classfactory.cpp
parente47a667cc91333627bc07aab42f0a7025181e85e (diff)
downloadphp-git-02a13a4ec494101ce9219650fbdc63dbf885aa69.tar.gz
this way it even compiles
#blame me if i did something wrong, i didn't test it ;)
Diffstat (limited to 'sapi/activescript/classfactory.cpp')
-rw-r--r--sapi/activescript/classfactory.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/sapi/activescript/classfactory.cpp b/sapi/activescript/classfactory.cpp
index 3d4f256db6..7dd37424c7 100644
--- a/sapi/activescript/classfactory.cpp
+++ b/sapi/activescript/classfactory.cpp
@@ -41,32 +41,32 @@ volatile LONG TPHPClassFactory::object_count = 0;
TPHPClassFactory::TPHPClassFactory()
{
m_refcount = 1;
- InterlockedIncrement(&factory_count);
+ InterlockedIncrement(const_cast<long*> (&factory_count));
}
TPHPClassFactory::~TPHPClassFactory()
{
- InterlockedDecrement(&factory_count);
+ InterlockedDecrement(const_cast<long*> (&factory_count));
}
void TPHPClassFactory::AddToObjectCount(void)
{
- InterlockedIncrement(&object_count);
+ InterlockedIncrement(const_cast<long*> (&object_count));
}
void TPHPClassFactory::RemoveFromObjectCount(void)
{
- InterlockedDecrement(&object_count);
+ InterlockedDecrement(const_cast<long*> (&object_count));
}
STDMETHODIMP_(DWORD) TPHPClassFactory::AddRef(void)
{
- return InterlockedIncrement(&m_refcount);
+ return InterlockedIncrement(const_cast<long*> (&m_refcount));
}
STDMETHODIMP_(DWORD) TPHPClassFactory::Release(void)
{
- DWORD ret = InterlockedDecrement(&m_refcount);
+ DWORD ret = InterlockedDecrement(const_cast<long*> (&m_refcount));
if (ret == 0)
delete this;
return ret;