mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 21:45:32 +00:00
Don't use C++11 features.
This commit is contained in:
parent
28259f914c
commit
dc9af19dcf
1 changed files with 28 additions and 3 deletions
|
@ -40,9 +40,9 @@ namespace CSMWorld
|
|||
ESXRecordT mBase;
|
||||
ESXRecordT mModified;
|
||||
|
||||
Record() = default;
|
||||
Record(const Record&) = default;
|
||||
Record& operator= (const Record&) = default;
|
||||
Record();
|
||||
Record(const Record& record);
|
||||
Record& operator= (const Record& record);
|
||||
|
||||
Record(State state,
|
||||
const ESXRecordT *base = 0, const ESXRecordT *modified = 0);
|
||||
|
@ -69,6 +69,31 @@ namespace CSMWorld
|
|||
///< Merge modified into base.
|
||||
};
|
||||
|
||||
template <typename ESXRecordT>
|
||||
Record<ESXRecordT>::Record()
|
||||
: mBase(), mModified()
|
||||
{ }
|
||||
|
||||
template <typename ESXRecordT>
|
||||
Record<ESXRecordT>::Record(const Record& record)
|
||||
: mBase(record.mBase), mModified(record.mModified)
|
||||
{
|
||||
mState = record.mState;
|
||||
}
|
||||
|
||||
template <typename ESXRecordT>
|
||||
Record<ESXRecordT>& Record<ESXRecordT>::operator= (const Record& record)
|
||||
{
|
||||
if(this != &record)
|
||||
{
|
||||
mBase = record.mBase;
|
||||
mModified = record.mModified;
|
||||
mState = record.mState;
|
||||
}
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
template <typename ESXRecordT>
|
||||
Record<ESXRecordT>::Record(State state, const ESXRecordT *base, const ESXRecordT *modified)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue