extragear/multimedia/amarok/src/scriptengine

Dan Meltzer parallelgrapefruit at gmail.com
Wed Sep 24 14:05:27 CEST 2008


On Wed, Sep 24, 2008 at 7:08 AM, Seb Ruiz <ruiz at kde.org> wrote:
> SVN commit 864254 by seb:
>
> warnings--

Warnings in this case were a good way to see what was, and was not,
yet implemented.... most of the Q_UNUSED were because the functions
were stubs... can you put AMAROK_NOTIMPLEMENTED in there so that we
still can keep track of them not being implemented?  Otherwise it's
hiding a problem, not solving it.
>
>
>  M  +2 -2      AmarokEngineScript.cpp
>  M  +2 -1      AmarokLyricsScript.cpp
>  M  +2 -0      AmarokScriptableServiceScript.cpp
>
>
> --- trunk/extragear/multimedia/amarok/src/scriptengine/AmarokEngineScript.cpp #864253:864254
> @@ -170,7 +170,7 @@
>
>     void AmarokEngineScript::setDynamicMode( bool enable )
>     {
> -
> +        Q_UNUSED( enable );
>     }
>
>     void AmarokEngineScript::setRepeatPlaylist( bool enable )
> @@ -200,7 +200,7 @@
>
>     void AmarokEngineScript::setFadeoutLength( int length )
>     {
> -
> +        Q_UNUSED( length );
>     }
>  }
>
> --- trunk/extragear/multimedia/amarok/src/scriptengine/AmarokLyricsScript.cpp #864253:864254
> @@ -66,7 +66,8 @@
>  void
>  AmarokLyricsScript::setLyricsForTrack( const QString& trackUrl, const QString& lyrics ) const
>  {
> -    debug() << "bar";
> +    Q_UNUSED( trackUrl );
> +    Q_UNUSED( lyrics );
>  }
>
>  QString
> --- trunk/extragear/multimedia/amarok/src/scriptengine/AmarokScriptableServiceScript.cpp #864253:864254
> @@ -26,6 +26,7 @@
>
>  StreamItem::StreamItem( QScriptEngine *engine )
>  {
> +    Q_UNUSED( engine );
>  }
>
>  StreamItem::~StreamItem()
> @@ -117,6 +118,7 @@
>
>  QScriptValue ScriptableServiceScript::ScriptableServiceScript_prototype_populate( QScriptContext *context, QScriptEngine *engine )
>  {
> +    Q_UNUSED( context );
>     debug() << "prototype populating here!";
>     return engine->undefinedValue(); // Fixme: return something.
>  }
>


More information about the Amarok-devel mailing list