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:
parent
8dcde8b128
commit
7c7f4cafda
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user