[6922] Whitespace and newline fixes

This should fix the GCC "no newline at end of file" warnings.

Signed-off-by: freghar <compmancz@gmail.com>
This commit is contained in:
freghar 2008-12-19 23:25:20 +01:00 committed by tomrus88
parent ba868910e2
commit d75812749f
7 changed files with 16 additions and 16 deletions

View file

@ -2,20 +2,20 @@ ALTER TABLE db_version CHANGE COLUMN required_2008_11_11_01_mangos_db_script_str
ALTER TABLE event_scripts ALTER TABLE event_scripts
DROP datatext, DROP datatext,
ADD COLUMN dataint int(11) NOT NULL default '0'; ADD COLUMN dataint int(11) NOT NULL default '0';
ALTER TABLE gameobject_scripts ALTER TABLE gameobject_scripts
DROP datatext, DROP datatext,
ADD COLUMN dataint int(11) NOT NULL default '0'; ADD COLUMN dataint int(11) NOT NULL default '0';
ALTER TABLE quest_end_scripts ALTER TABLE quest_end_scripts
DROP datatext, DROP datatext,
ADD COLUMN dataint int(11) NOT NULL default '0'; ADD COLUMN dataint int(11) NOT NULL default '0';
ALTER TABLE quest_start_scripts ALTER TABLE quest_start_scripts
DROP datatext, DROP datatext,
ADD COLUMN dataint int(11) NOT NULL default '0'; ADD COLUMN dataint int(11) NOT NULL default '0';
ALTER TABLE spell_scripts ALTER TABLE spell_scripts
DROP datatext, DROP datatext,
ADD COLUMN dataint int(11) NOT NULL default '0'; ADD COLUMN dataint int(11) NOT NULL default '0';

View file

@ -1,16 +1,16 @@
ALTER TABLE db_version CHANGE COLUMN required_2008_11_11_02_mangos_scripts required_2008_11_14_01_mangos_scripts bit; ALTER TABLE db_version CHANGE COLUMN required_2008_11_11_02_mangos_scripts required_2008_11_14_01_mangos_scripts bit;
ALTER TABLE event_scripts ALTER TABLE event_scripts
CHANGE COLUMN dataint dataint int(11) NOT NULL default '0' AFTER datalong2; CHANGE COLUMN dataint dataint int(11) NOT NULL default '0' AFTER datalong2;
ALTER TABLE gameobject_scripts ALTER TABLE gameobject_scripts
CHANGE COLUMN dataint dataint int(11) NOT NULL default '0' AFTER datalong2; CHANGE COLUMN dataint dataint int(11) NOT NULL default '0' AFTER datalong2;
ALTER TABLE quest_end_scripts ALTER TABLE quest_end_scripts
CHANGE COLUMN dataint dataint int(11) NOT NULL default '0' AFTER datalong2; CHANGE COLUMN dataint dataint int(11) NOT NULL default '0' AFTER datalong2;
ALTER TABLE quest_start_scripts ALTER TABLE quest_start_scripts
CHANGE COLUMN dataint dataint int(11) NOT NULL default '0' AFTER datalong2; CHANGE COLUMN dataint dataint int(11) NOT NULL default '0' AFTER datalong2;
ALTER TABLE spell_scripts ALTER TABLE spell_scripts
CHANGE COLUMN dataint dataint int(11) NOT NULL default '0' AFTER datalong2; CHANGE COLUMN dataint dataint int(11) NOT NULL default '0' AFTER datalong2;

View file

@ -68,7 +68,7 @@ struct Script
CreatureAI* (*GetAI)(Creature *_Creature); CreatureAI* (*GetAI)(Creature *_Creature);
InstanceData* (*GetInstanceData)(Map*); InstanceData* (*GetInstanceData)(Map*);
// ----------------------------------------- // -----------------------------------------
void registerSelf(); void registerSelf();
}; };

View file

@ -984,7 +984,7 @@ void WorldSession::HandleChangePlayerNameOpcode(WorldPacket& recv_data)
// and that there is no character with the desired new name // and that there is no character with the desired new name
CharacterDatabase.AsyncPQuery(&WorldSession::HandleChangePlayerNameOpcodeCallBack, CharacterDatabase.AsyncPQuery(&WorldSession::HandleChangePlayerNameOpcodeCallBack,
GetAccountId(), newname, GetAccountId(), newname,
"SELECT guid, name FROM characters WHERE guid = %d AND account = %d AND (at_login & %d) = %d AND NOT EXISTS (SELECT NULL FROM characters WHERE name = '%s')", "SELECT guid, name FROM characters WHERE guid = %d AND account = %d AND (at_login & %d) = %d AND NOT EXISTS (SELECT NULL FROM characters WHERE name = '%s')",
GUID_LOPART(guid), GetAccountId(), AT_LOGIN_RENAME, AT_LOGIN_RENAME, escaped_newname.c_str() GUID_LOPART(guid), GetAccountId(), AT_LOGIN_RENAME, AT_LOGIN_RENAME, escaped_newname.c_str()
); );
} }

View file

@ -579,7 +579,7 @@ void ObjectMgr::LoadCreatureLocales()
sLog.outString(); sLog.outString();
sLog.outString( ">> Loaded %u creature locale strings", mCreatureLocaleMap.size() ); sLog.outString( ">> Loaded %u creature locale strings", mCreatureLocaleMap.size() );
} }
void ObjectMgr::LoadCompletedAchievements() void ObjectMgr::LoadCompletedAchievements()
{ {
QueryResult *result = CharacterDatabase.Query("SELECT achievement FROM character_achievement GROUP BY achievement"); QueryResult *result = CharacterDatabase.Query("SELECT achievement FROM character_achievement GROUP BY achievement");

View file

@ -96,7 +96,7 @@ Database::AsyncQuery(Class *object, void (Class::*method)(QueryResult*, ParamTyp
return m_threadBody->Delay(new SqlQuery(sql, new MaNGOS::QueryCallback<Class, ParamType1, ParamType2, ParamType3>(object, method, (QueryResult*)NULL, param1, param2, param3), itr->second)); return m_threadBody->Delay(new SqlQuery(sql, new MaNGOS::QueryCallback<Class, ParamType1, ParamType2, ParamType3>(object, method, (QueryResult*)NULL, param1, param2, param3), itr->second));
} }
// -- Query / static -- // -- Query / static --
template<typename ParamType1> template<typename ParamType1>
bool bool
@ -202,4 +202,4 @@ Database::DelayQueryHolder(Class *object, void (Class::*method)(QueryResult*, Sq
#undef ASYNC_QUERY_BODY #undef ASYNC_QUERY_BODY
#undef ASYNC_PQUERY_BODY #undef ASYNC_PQUERY_BODY
#undef ASYNC_DELAYHOLDER_BODY #undef ASYNC_DELAYHOLDER_BODY

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "6921" #define REVISION_NR "6922"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__