Skip to content

Commit

Permalink
Merge pull request herace#2 from Larpon/fixes/fix_a_few_warnings
Browse files Browse the repository at this point in the history
Fix a few compiler warnings
  • Loading branch information
herace authored Nov 11, 2019
2 parents e3433fa + 485468f commit b9e72ff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/gui/ObjectTreeWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ ObjectTreeWidget::ObjectTreeWidget(ViaPoint& aViaPoint, GUIResources& aResources
, mProject()
, mTimeLineSlot()
, mStoreInsert(false)
, mInsertedPositions()
, mRemovedPositions()
, mInsertedPositions()
, mMacroScope()
, mObjTreeNotifier()
, mDragIndex()
Expand Down Expand Up @@ -124,7 +124,7 @@ void ObjectTreeWidget::setProject(core::Project* aProject)
trees->push_back(this->takeTopLevelItem(0));
}
// save
auto hook = (ProjectHook*)mProject->hook();
auto hook = static_cast<ProjectHook*>(mProject->hook());
hook->grabObjectTrees(trees.take());
}
}
Expand All @@ -148,7 +148,7 @@ void ObjectTreeWidget::setProject(core::Project* aProject)
mTimeLineSlot = mProject->onTimeLineModified.connect(
this, &ObjectTreeWidget::onTimeLineModified);

auto hook = (ProjectHook*)mProject->hook();
auto hook = static_cast<ProjectHook*>(mProject->hook());
// load trees
if (hook && hook->hasObjectTrees())
{
Expand Down Expand Up @@ -531,7 +531,7 @@ void ObjectTreeWidget::onObjectActionTriggered(bool)
parent = mProject->objectTree().topNode();
XC_PTR_ASSERT(parent);

index = (int)parent->children().size();
index = static_cast<int>(parent->children().size());
if (index > 0)
{
auto prevNode = parent->children().back();
Expand Down Expand Up @@ -628,7 +628,7 @@ void ObjectTreeWidget::onFolderActionTriggered(bool)
parent = mProject->objectTree().topNode();
XC_PTR_ASSERT(parent);

index = (int)parent->children().size();
index = static_cast<int>(parent->children().size());
if (index > 0)
{
auto prevNode = parent->children().back();
Expand Down

0 comments on commit b9e72ff

Please sign in to comment.