forked from mirror/openmw-tes3mp
[Server] Make argument const reference
This commit is contained in:
parent
c5388e49f2
commit
f9c4b847aa
2 changed files with 4 additions and 4 deletions
|
@ -27,7 +27,7 @@ const vector<string> Utils::split(const string &str, int delimiter)
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
ESM::Cell Utils::getCellFromDescription(std::string cellDescription)
|
ESM::Cell Utils::getCellFromDescription(const std::string &cellDescription)
|
||||||
{
|
{
|
||||||
ESM::Cell cell;
|
ESM::Cell cell;
|
||||||
cell.blank();
|
cell.blank();
|
||||||
|
@ -60,7 +60,7 @@ const std::string Utils::getLastError()
|
||||||
return lastErrorMessage;
|
return lastErrorMessage;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Utils::throwError(const std::string errorMessage)
|
void Utils::throwError(const std::string &errorMessage)
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// Throwing exceptions makes them show up as "bad exception" on Windows with
|
// Throwing exceptions makes them show up as "bad exception" on Windows with
|
||||||
|
|
|
@ -38,11 +38,11 @@ namespace Utils
|
||||||
{
|
{
|
||||||
const std::vector<std::string> split(const std::string &str, int delimiter);
|
const std::vector<std::string> split(const std::string &str, int delimiter);
|
||||||
|
|
||||||
ESM::Cell getCellFromDescription(std::string cellDescription);
|
ESM::Cell getCellFromDescription(const std::string &cellDescription);
|
||||||
|
|
||||||
const std::string getLastError();
|
const std::string getLastError();
|
||||||
|
|
||||||
void throwError(std::string errorMessage);
|
void throwError(const std::string &errorMessage);
|
||||||
|
|
||||||
template<size_t N>
|
template<size_t N>
|
||||||
constexpr unsigned int hash(const char(&str)[N], size_t I = N)
|
constexpr unsigned int hash(const char(&str)[N], size_t I = N)
|
||||||
|
|
Loading…
Reference in a new issue