[vlmc-devel] [PATCH] Fix "disconnect"
Hugo Beauzée-Luyssen
hugo at beauzee.fr
Mon Apr 4 13:15:21 CEST 2016
Hi,
On 04/04/2016 01:07 PM, Yikai Lu wrote:
> FIXME: metaDataComputed in Media class has no arguments, this shouldn't be working; replacing this with disconnect( media, &Media::metaDataComputed, this, &Library::mediaLoaded ); produces static_assert error
Do you mean that this patch causes a static_assert error?
Or that it fixes it?
> ---
> src/Library/Library.cpp | 7 +------
> 1 file changed, 1 insertion(+), 6 deletions(-)
>
> diff --git a/src/Library/Library.cpp b/src/Library/Library.cpp
> index db5e2bf..b7d0592 100644
> --- a/src/Library/Library.cpp
> +++ b/src/Library/Library.cpp
> @@ -113,13 +113,8 @@ void
> Library::mediaLoaded( const Media* media )
> {
> if ( media != nullptr )
> - {
> - //FIXME: metaDataComputed in Media class has no arguments, this shouldn't be working;
> - //replacing this with disconnect( media, &Media::metaDataComputed, this, &Library::mediaLoaded );
> - //produces static_assert error
> - disconnect( media, SIGNAL( metaDataComputed( const Media* ) ),
> + disconnect( media, SIGNAL( metaDataComputed() ),
> this, SLOT( mediaLoaded( const Media* ) ) );
> - }
> if (m_nbMediaToLoad.fetchAndAddAcquire( -1 ) == 1)
> emit projectLoaded();
> }
>
More information about the Vlmc-devel
mailing list