Browse Source

new to GM_NEW

Greg 16 years ago
parent
commit
e3626f954b
2 changed files with 5 additions and 2 deletions
  1. 3 0
      gmsrc/doc/ChangeLog.txt
  2. 2 2
      gmsrc/src/gm/gmCodeGen.cpp

+ 3 - 0
gmsrc/doc/ChangeLog.txt

@@ -352,3 +352,6 @@ o Remove orphaned code in gmBlock dated 25/10/04 "Changed behaviour of Block() t
 o Changed block on null behavior to cause script thread exception.
 o Changed block on null behavior to cause script thread exception.
 o Fix signal behavior so multiple signals cannot accumulate on a blocked thread. Thanks DrEvil.
 o Fix signal behavior so multiple signals cannot accumulate on a blocked thread. Thanks DrEvil.
 o Changing gm version format from vMajor.Minor.BetaLetter to vMajor.Minor.Build. Probably won't change coded version to store past Minor unless process is automated.
 o Changing gm version format from vMajor.Minor.BetaLetter to vMajor.Minor.Build. Probably won't change coded version to store past Minor unless process is automated.
+
+04/02/10
+o Changed new to GM_NEW in gmCodeGen.cpp for consistency.  Thanks Sunray.

+ 2 - 2
gmsrc/src/gm/gmCodeGen.cpp

@@ -1508,7 +1508,7 @@ gmCodeGenPrivate::FunctionState * gmCodeGenPrivate::PushFunction()
     }
     }
     else
     else
     {
     {
-      m_currentFunction = new FunctionState();   
+      m_currentFunction = GM_NEW( FunctionState() );
       m_functionStack.InsertLast(m_currentFunction);
       m_functionStack.InsertLast(m_currentFunction);
     }
     }
   }
   }
@@ -1516,7 +1516,7 @@ gmCodeGenPrivate::FunctionState * gmCodeGenPrivate::PushFunction()
   {
   {
     if(m_functionStack.IsEmpty())
     if(m_functionStack.IsEmpty())
     {
     {
-      m_currentFunction = new FunctionState();   
+      m_currentFunction = GM_NEW( FunctionState() );
       m_functionStack.InsertLast(m_currentFunction);
       m_functionStack.InsertLast(m_currentFunction);
     }
     }
     else
     else