aboutsummaryrefslogtreecommitdiff
path: root/src/shared/Database/DBCStores.cpp
diff options
context:
space:
mode:
authorBlaymoira <none@none>2008-12-12 20:34:51 +0100
committerBlaymoira <none@none>2008-12-12 20:34:51 +0100
commitab59d3adcc2a4afc743afe1a998290b99ed95929 (patch)
tree198a3ddb3aba4e7505869bcb0d631d5a289b817f /src/shared/Database/DBCStores.cpp
parentec12b76b392d65f02ad1b2d48508771f77284b50 (diff)
parentb6c288ca9fb271923f493ee39d78b5dc4b2a996f (diff)
*Merged with 464.
--HG-- branch : trunk
Diffstat (limited to 'src/shared/Database/DBCStores.cpp')
-rw-r--r--src/shared/Database/DBCStores.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shared/Database/DBCStores.cpp b/src/shared/Database/DBCStores.cpp
index 03536daf738..fb132c75768 100644
--- a/src/shared/Database/DBCStores.cpp
+++ b/src/shared/Database/DBCStores.cpp
@@ -130,7 +130,7 @@ DBCStorage <WorldSafeLocsEntry> sWorldSafeLocsStore(WorldSafeLocsEntryfmt);
typedef std::list<std::string> StoreProblemList;
-static bool LoadDBC_assert_print(uint32 fsize,uint32 rsize, std::string filename)
+static bool LoadDBC_assert_print(uint32 fsize,uint32 rsize, const std::string& filename)
{
sLog.outError("ERROR: Size of '%s' setted by format string (%u) not equal size of C++ structure (%u).",filename.c_str(),fsize,rsize);
@@ -139,7 +139,7 @@ static bool LoadDBC_assert_print(uint32 fsize,uint32 rsize, std::string filename
}
template<class T>
-inline void LoadDBC(uint32& availableDbcLocales,barGoLink& bar, StoreProblemList& errlist, DBCStorage<T>& storage, std::string dbc_path, std::string filename)
+inline void LoadDBC(uint32& availableDbcLocales,barGoLink& bar, StoreProblemList& errlist, DBCStorage<T>& storage, const std::string& dbc_path, const std::string& filename)
{
// compatibility format and C++ structure sizes
assert(DBCFile::GetFormatRecordSize(storage.GetFormat()) == sizeof(T) || LoadDBC_assert_print(DBCFile::GetFormatRecordSize(storage.GetFormat()),sizeof(T),filename));
@@ -174,7 +174,7 @@ inline void LoadDBC(uint32& availableDbcLocales,barGoLink& bar, StoreProblemList
}
}
-void LoadDBCStores(std::string dataPath)
+void LoadDBCStores(const std::string& dataPath)
{
std::string dbcPath = dataPath+"dbc/";