Quantcast

Don't leak names into the global namespace.

Johnny C. Lam [04-05-13 - 06:20]
Don't leak names into the global namespace.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@886 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleAura.lua
OvaleSkada.lua
diff --git a/OvaleAura.lua b/OvaleAura.lua
index 037a1e7..7581ecf 100644
--- a/OvaleAura.lua
+++ b/OvaleAura.lua
@@ -149,7 +149,7 @@ local function RemoveAurasForGUID(guid)
 	end
 end

-function RemoveAurasForMissingUnits()
+local function RemoveAurasForMissingUnits()
 	-- Remove all auras from GUIDs that can no longer be referenced by a unit ID,
 	-- i.e., not in the group or not targeted by anyone in the group or focus.
 	for guid in pairs(self_aura) do
@@ -159,7 +159,7 @@ function RemoveAurasForMissingUnits()
 	end
 end

-function UpdateAuras(unitId, unitGUID)
+local function UpdateAuras(unitId, unitGUID)
 	self_serial = self_serial + 1

 	if not unitId then
diff --git a/OvaleSkada.lua b/OvaleSkada.lua
index f3d6fe3..50e98c4 100644
--- a/OvaleSkada.lua
+++ b/OvaleSkada.lua
@@ -32,7 +32,7 @@ local function GetValue(set)
 	end
 end

-function ReceiveScore(name, guid, scored, scoreMax)
+local function ReceiveScore(name, guid, scored, scoreMax)
 	local self = OvaleSkada
 	if guid and Skada and Skada.current and Skada.total then
 		local player = Skada:get_player(Skada.current, guid, nil)