Fix for more gcc differences.

test
cc9cii 10 years ago
parent 3a46512b7f
commit 23db79ebab

@ -22,7 +22,7 @@ namespace CSMWorld
class IdTable;
class IdTree;
struct RecordBase;
class NestedTableWrapperBase;
struct NestedTableWrapperBase;
class ModifyCommand : public QUndoCommand
{

@ -7,7 +7,7 @@ class QVariant;
namespace CSMWorld
{
class NestedTableWrapperBase;
struct NestedTableWrapperBase;
template<typename ESXRecordT>
class NestedIdAdapter

@ -20,7 +20,7 @@ namespace CSMWorld
{
class NestedCollection;
struct RecordBase;
class NestedTableWrapperBase; // FIXME: is this necessary?
struct NestedTableWrapperBase;
class IdTree : public IdTable
{

@ -6,7 +6,7 @@ class QVariant;
namespace CSMWorld
{
class NestableColumn;
class NestedTableWrapperBase;
struct NestedTableWrapperBase;
class NestedCollection
{

@ -20,7 +20,7 @@ namespace CSMWorld
class RefIdColumn;
class RefIdData;
struct RecordBase;
class NestedTableWrapperBase;
struct NestedTableWrapperBase;
class HelperBase;
class RefIdAdapter

@ -16,7 +16,7 @@
namespace CSMWorld
{
class NestedTableWrapperBase;
struct NestedTableWrapperBase;
struct BaseColumns
{

@ -18,7 +18,7 @@ namespace ESM
namespace CSMWorld
{
class RefIdAdapter;
class NestedTableWrapperBase;
struct NestedTableWrapperBase;
class RefIdColumn : public NestableColumn
{

@ -102,53 +102,61 @@ namespace CSMWorld
template<typename ESXRecordT, typename IdAccessorT>
void SubCellCollection<ESXRecordT, IdAccessorT>::addNestedRow(int row, int column, int position)
{
getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->addNestedRow(getRecord(row), position);
getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->addNestedRow(
Collection<ESXRecordT, IdAccessorT>::getRecord(row), position);
}
template<typename ESXRecordT, typename IdAccessorT>
void SubCellCollection<ESXRecordT, IdAccessorT>::removeNestedRows(int row, int column, int subRow)
{
getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->removeNestedRow(getRecord(row), subRow);
getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->removeNestedRow(
Collection<ESXRecordT, IdAccessorT>::getRecord(row), subRow);
}
template<typename ESXRecordT, typename IdAccessorT>
QVariant SubCellCollection<ESXRecordT, IdAccessorT>::getNestedData (int row,
int column, int subRow, int subColumn) const
{
return getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->getNestedData(getRecord(row), subRow, subColumn);
return getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->getNestedData(
Collection<ESXRecordT, IdAccessorT>::getRecord(row), subRow, subColumn);
}
template<typename ESXRecordT, typename IdAccessorT>
void SubCellCollection<ESXRecordT, IdAccessorT>::setNestedData(int row,
int column, const QVariant& data, int subRow, int subColumn)
{
getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->setNestedData(getRecord(row), data, subRow, subColumn);
getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->setNestedData(
Collection<ESXRecordT, IdAccessorT>::getRecord(row), data, subRow, subColumn);
}
template<typename ESXRecordT, typename IdAccessorT>
CSMWorld::NestedTableWrapperBase* SubCellCollection<ESXRecordT, IdAccessorT>::nestedTable(int row,
int column) const
{
return getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->nestedTable(getRecord(row));
return getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->nestedTable(
Collection<ESXRecordT, IdAccessorT>::getRecord(row));
}
template<typename ESXRecordT, typename IdAccessorT>
void SubCellCollection<ESXRecordT, IdAccessorT>::setNestedTable(int row,
int column, const CSMWorld::NestedTableWrapperBase& nestedTable)
{
getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->setNestedTable(getRecord(row), nestedTable);
getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->setNestedTable(
Collection<ESXRecordT, IdAccessorT>::getRecord(row), nestedTable);
}
template<typename ESXRecordT, typename IdAccessorT>
int SubCellCollection<ESXRecordT, IdAccessorT>::getNestedRowsCount(int row, int column) const
{
return getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->getNestedRowsCount(getRecord(row));
return getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->getNestedRowsCount(
Collection<ESXRecordT, IdAccessorT>::getRecord(row));
}
template<typename ESXRecordT, typename IdAccessorT>
int SubCellCollection<ESXRecordT, IdAccessorT>::getNestedColumnsCount(int row, int column) const
{
return getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->getNestedColumnsCount(getRecord(row));
return getAdapter(Collection<ESXRecordT, IdAccessorT>::getColumn(column))->getNestedColumnsCount(
Collection<ESXRecordT, IdAccessorT>::getRecord(row));
}
template<typename ESXRecordT, typename IdAccessorT>

Loading…
Cancel
Save