1
mirror of https://code.videolan.org/videolan/vlc synced 2024-07-25 09:41:30 +02:00

Qt4: bookmarks: don't give an anonymous temporary object to qtu

There may be similar bugs in other places
This commit is contained in:
Rémi Denis-Courmont 2010-03-07 17:39:50 +02:00
parent 0820fb75f3
commit c83ddc49d3

View File

@ -151,8 +151,9 @@ void BookmarksDialog::add()
if( !input_Control( p_input, INPUT_GET_BOOKMARK, &bookmark ) )
{
bookmark.psz_name = const_cast<char *>qtu( THEMIM->getIM()->getName() +
QString::number( bookmarksList->topLevelItemCount() ) );
QString name = THEMIM->getIM()->getName()
+ QString::number( bookmarksList->topLevelItemCount() );
bookmark.psz_name = const_cast<char *>qtu( name );
input_Control( p_input, INPUT_ADD_BOOKMARK, &bookmark );
}