Browse Source

Made LuaDocument's LoadScript function signature the same as ElementDocument's like it should have been.

Nate Starkey 13 years ago
parent
commit
41edc5d22e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Source/Core/Lua/LuaDocument.cpp
  2. 1 1
      Source/Core/Lua/LuaDocument.h

+ 1 - 1
Source/Core/Lua/LuaDocument.cpp

@@ -12,7 +12,7 @@ LuaDocument::LuaDocument(const String& tag) : ElementDocument(tag)
 {
 {
 }
 }
 
 
-void LuaDocument::LoadScript(Stream& stream, const String& source_name)
+void LuaDocument::LoadScript(Stream* stream, const String& source_name)
 {
 {
     //if it is loaded from a file
     //if it is loaded from a file
     if(source_name != "")
     if(source_name != "")

+ 1 - 1
Source/Core/Lua/LuaDocument.h

@@ -12,7 +12,7 @@ class LuaDocument : public ElementDocument
 {
 {
 public:
 public:
     LuaDocument(const String& tag);
     LuaDocument(const String& tag);
-    virtual void LoadScript(Stream& stream, const String& source_name);
+    virtual void LoadScript(Stream* stream, const String& source_name);
 };
 };
 
 
 }
 }