PDA

Просмотр полной версии : [11490] Alow implicit cast ObjectGuid->uint64 and only explicit uint64->ObjectGuid


newsbot
15.05.2011, 22:11
автор: VladimirMangos


<pre>m src/game/ArenaTeam.cpp
m src/game/AuctionHouseHandler.cpp
m src/game/BattleGround.cpp
m src/game/Channel.cpp
m src/game/CharacterHandler.cpp
m src/game/Chat.cpp
m src/game/Creature.cpp
m src/game/Creature.h
m src/game/GMTicketMgr.cpp
m src/game/GMTicketMgr.h
m src/game/GameObject.cpp
m src/game/Group.cpp
m src/game/GroupHandler.cpp
m src/game/Guild.cpp
m src/game/HostileRefManager.cpp
m src/game/Item.cpp
m src/game/ItemHandler.cpp
m src/game/Level1.cpp
m src/game/Level2.cpp
m src/game/Level3.cpp
m src/game/LootHandler.cpp
m src/game/MailHandler.cpp
m src/game/Map.cpp
m src/game/MiscHandler.cpp
m src/game/MotionMaster.cpp
m src/game/MovementHandler.cpp
m src/game/NPCHandler.cpp
m src/game/Object.cpp
m src/game/ObjectAccessor.cpp
m src/game/ObjectGuid.h
m src/game/Pet.cpp
m src/game/PetHandler.cpp
m src/game/PetitionsHandler.cpp
m src/game/Player.cpp
m src/game/QuestHandler.cpp
m src/game/Spell.cpp
m src/game/Spell.h
m src/game/SpellAuras.cpp
m src/game/SpellEffects.cpp
m src/game/Totem.cpp
m src/game/Unit.cpp
m src/game/Unit.h
m src/game/UnitAuraProcHandler.cpp
m src/game/WorldSession.cpp
m src/game/debugcmds.cpp
m src/mangosd/CliRunnable.cpp
m src/shared/revision_nr.h
</pre>
<pre style='white-space:pre-wrap;width:81ex'>[11490] Alow implicit cast ObjectGuid->uint64 and only explicit uint64->ObjectGuid

Now safe allow this casts in like way after completed convertion to ObjectGuid use.
Also simplify code in result allowed auto cast to uint64.

Please _not_ add new uint64 storages (local and in structures) for guid values.</pre>




Дальше... (https://github.com/mangos/mangos/commit/19ee350da4b259fe5f290ee0d3ccb5f4333b0cc4)