mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-20 12:11:32 +00:00
Pass a string by reference
This commit is contained in:
parent
f35ab12979
commit
1212c07266
2 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@
|
||||||
#include "class.hpp"
|
#include "class.hpp"
|
||||||
#include "esmstore.hpp"
|
#include "esmstore.hpp"
|
||||||
|
|
||||||
MWWorld::LiveCellRefBase::LiveCellRefBase(std::string type, const ESM::CellRef &cref)
|
MWWorld::LiveCellRefBase::LiveCellRefBase(const std::string& type, const ESM::CellRef &cref)
|
||||||
: mClass(&Class::get(type)), mRef(cref), mData(cref)
|
: mClass(&Class::get(type)), mRef(cref), mData(cref)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,7 @@ namespace MWWorld
|
||||||
/** runtime-data */
|
/** runtime-data */
|
||||||
RefData mData;
|
RefData mData;
|
||||||
|
|
||||||
LiveCellRefBase(std::string type, const ESM::CellRef &cref=ESM::CellRef());
|
LiveCellRefBase(const std::string& type, const ESM::CellRef &cref=ESM::CellRef());
|
||||||
/* Need this for the class to be recognized as polymorphic */
|
/* Need this for the class to be recognized as polymorphic */
|
||||||
virtual ~LiveCellRefBase() { }
|
virtual ~LiveCellRefBase() { }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue