summaryrefslogtreecommitdiff
path: root/src/resources/db
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-28 15:46:02 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-28 16:41:19 +0300
commitf146cd42ce84a08879eb286ecd2ed2aa8ad82300 (patch)
treef689f832f54f361be8cff61deb47c0e32febd486 /src/resources/db
parent409cee51fe11e2495a2741226432666a8702dceb (diff)
downloadmv-f146cd42ce84a08879eb286ecd2ed2aa8ad82300.tar.gz
mv-f146cd42ce84a08879eb286ecd2ed2aa8ad82300.tar.bz2
mv-f146cd42ce84a08879eb286ecd2ed2aa8ad82300.tar.xz
mv-f146cd42ce84a08879eb286ecd2ed2aa8ad82300.zip
fix code style.
Diffstat (limited to 'src/resources/db')
-rw-r--r--src/resources/db/weaponsdb.cpp7
-rw-r--r--src/resources/db/weaponsdb.h1
2 files changed, 1 insertions, 7 deletions
diff --git a/src/resources/db/weaponsdb.cpp b/src/resources/db/weaponsdb.cpp
index 82892cc5f..6e8e4ce1f 100644
--- a/src/resources/db/weaponsdb.cpp
+++ b/src/resources/db/weaponsdb.cpp
@@ -20,13 +20,8 @@
#include "resources/db/weaponsdb.h"
-#include "logger.h"
-
-#include "utils/gettext.h"
#include "utils/xmlutils.h"
-#include "configuration.h"
-
#include "debug.h"
namespace
@@ -37,7 +32,7 @@ namespace
bool mLoaded = false;
}
-static void loadDB(const std::string name, WeaponsInfos &arr)
+static void loadDB(const std::string &name, WeaponsInfos &arr)
{
readXmlIntVector("weapons.xml",
"weapons",
diff --git a/src/resources/db/weaponsdb.h b/src/resources/db/weaponsdb.h
index 287237c48..33688b338 100644
--- a/src/resources/db/weaponsdb.h
+++ b/src/resources/db/weaponsdb.h
@@ -21,7 +21,6 @@
#ifndef RESOURCES_DB_WEAPONSDB_H
#define RESOURCES_DB_WEAPONSDB_H
-#include <string>
#include <vector>
#include "localconsts.h"