mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[10792] Fixed warnings and need in redundent char* casts in database access code.
This commit is contained in:
parent
7f34658dd2
commit
abc6dfca98
9 changed files with 26 additions and 20 deletions
|
|
@ -492,7 +492,7 @@ void ObjectMgr::LoadPointOfInterestLocales()
|
|||
struct SQLCreatureLoader : public SQLStorageLoaderBase<SQLCreatureLoader>
|
||||
{
|
||||
template<class D>
|
||||
void convert_from_str(uint32 /*field_pos*/, char *src, D &dst)
|
||||
void convert_from_str(uint32 /*field_pos*/, char const *src, D &dst)
|
||||
{
|
||||
dst = D(sObjectMgr.GetScriptId(src));
|
||||
}
|
||||
|
|
@ -1849,7 +1849,7 @@ void ObjectMgr::LoadItemLocales()
|
|||
struct SQLItemLoader : public SQLStorageLoaderBase<SQLItemLoader>
|
||||
{
|
||||
template<class D>
|
||||
void convert_from_str(uint32 /*field_pos*/, char *src, D &dst)
|
||||
void convert_from_str(uint32 /*field_pos*/, char const *src, D &dst)
|
||||
{
|
||||
dst = D(sObjectMgr.GetScriptId(src));
|
||||
}
|
||||
|
|
@ -5227,7 +5227,7 @@ void ObjectMgr::LoadPageTextLocales()
|
|||
struct SQLInstanceLoader : public SQLStorageLoaderBase<SQLInstanceLoader>
|
||||
{
|
||||
template<class D>
|
||||
void convert_from_str(uint32 /*field_pos*/, char *src, D &dst)
|
||||
void convert_from_str(uint32 /*field_pos*/, char const *src, D &dst)
|
||||
{
|
||||
dst = D(sObjectMgr.GetScriptId(src));
|
||||
}
|
||||
|
|
@ -6516,7 +6516,7 @@ void ObjectMgr::LoadGameObjectLocales()
|
|||
struct SQLGameObjectLoader : public SQLStorageLoaderBase<SQLGameObjectLoader>
|
||||
{
|
||||
template<class D>
|
||||
void convert_from_str(uint32 /*field_pos*/, char *src, D &dst)
|
||||
void convert_from_str(uint32 /*field_pos*/, char const *src, D &dst)
|
||||
{
|
||||
dst = D(sObjectMgr.GetScriptId(src));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue