CID 2021 : wrong cast type.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38080 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adrien Destugues 2010-08-13 11:59:31 +00:00
parent 8dcde8b128
commit 7c7f4cafda

View File

@ -200,12 +200,12 @@ void MediaWire::selected()
D_METHOD(("MediaWire::selected()\n"));
if (startPoint())
{
MediaJack *outputJack = dynamic_cast<MediaJack *>(startPoint());
MediaJack *outputJack = static_cast<MediaJack *>(startPoint());
outputJack->select();
}
if (endPoint())
{
MediaJack *inputJack = dynamic_cast<MediaJack *>(endPoint());
MediaJack *inputJack = static_cast<MediaJack *>(endPoint());
inputJack->select();
}
}
@ -215,12 +215,12 @@ void MediaWire::deselected()
D_METHOD(("MediaWire::deselected()\n"));
if (startPoint())
{
MediaJack *outputJack = dynamic_cast<MediaJack *>(startPoint());
MediaJack *outputJack = static_cast<MediaJack *>(startPoint());
outputJack->deselect();
}
if (endPoint())
{
MediaJack *inputJack = dynamic_cast<MediaJack *>(endPoint());
MediaJack *inputJack = static_cast<MediaJack *>(endPoint());
inputJack->deselect();
}
}