using c++11 auto
This commit is contained in:
parent
9426e69e3e
commit
a5327a68b8
@ -96,8 +96,7 @@ QQuickTextureFactory* QskGraphicImageProvider::requestTexture(
|
|||||||
|
|
||||||
const QskGraphic* QskGraphicImageProvider::requestGraphic( const QString& id ) const
|
const QskGraphic* QskGraphicImageProvider::requestGraphic( const QString& id ) const
|
||||||
{
|
{
|
||||||
const QskGraphicProvider* graphicProvider = Qsk::graphicProvider( m_providerId );
|
if ( auto graphicProvider = Qsk::graphicProvider( m_providerId ) )
|
||||||
if ( graphicProvider )
|
|
||||||
return graphicProvider->requestGraphic( id );
|
return graphicProvider->requestGraphic( id );
|
||||||
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user