Skip to content

Commit

Permalink
fixed compilation on gcc 4.
Browse files Browse the repository at this point in the history
  • Loading branch information
Francois Beaune committed Jun 29, 2011
1 parent 9918f39 commit 23b32ab
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/appleseed.studio/mainwindow/project/collectionitem.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ class CollectionItem
virtual void slot_create_accepted(foundation::Dictionary values);

void create(const foundation::Dictionary& values);

private:
friend class EntityCreatorBase;
};


Expand Down
5 changes: 4 additions & 1 deletion src/appleseed.studio/mainwindow/project/entityitem.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ class EntityItem
virtual void slot_delete();

void edit(const foundation::Dictionary& values);

private:
friend class EntityCreatorBase;
};


Expand Down Expand Up @@ -98,7 +101,7 @@ void EntityItem<Entity, ParentEntity>::slot_edit_accepted(foundation::Dictionary
template <typename Entity, typename ParentEntity>
void EntityItem<Entity, ParentEntity>::slot_delete()
{
if (allows_deletion())
if (EntityItemBaseType::allows_deletion())
{
m_project_builder.remove_entity(EntityItemBaseType::m_entity, m_parent);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ MultiModelEntityItem<Entity, ParentEntity>::MultiModelEntityItem(
template <typename Entity, typename ParentEntity>
void MultiModelEntityItem<Entity, ParentEntity>::slot_edit()
{
if (!allows_editing())
if (!EntityItemType::allows_editing())
return;

const std::string window_title =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ SingleModelEntityItem<Entity, ParentEntity>::SingleModelEntityItem(
template <typename Entity, typename ParentEntity>
void SingleModelEntityItem<Entity, ParentEntity>::slot_edit()
{
if (!allows_editing())
if (!EntityItemType::allows_editing())
return;

const std::string window_title =
Expand Down

0 comments on commit 23b32ab

Please sign in to comment.