~ubuntu-branches/ubuntu/trusty/grantlee/trusty

« back to all changes in this revision

Viewing changes to templates/lib/pluginpointer_p.h

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2012-11-21 11:04:39 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20121121110439-tzyjomgtnpmdnsxn
Tags: 0.3.0-0ubuntu1
* New upsteam release
  - Update libgrantlee-core0.symbols
* Add wildcards to *.install files to avoid unneeded build failures

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
{
44
44
  class _Dummy;
45
45
public:
46
 
  PluginPointer()
47
 
    : m_plugin( 0 )
48
 
  {
49
 
 
50
 
  }
51
 
 
52
46
  // This allows returning 0 from a function returning a PluginType*
53
 
  PluginPointer( _Dummy* )
 
47
  PluginPointer( _Dummy* = 0 )
54
48
    : m_plugin( 0 )
55
49
  {
56
50
 
62
56
    m_pluginLoader = QSharedPointer<QPluginLoader>( new QPluginLoader( fileName ), _deleter );
63
57
 
64
58
    m_object = m_pluginLoader->instance();
65
 
    if ( !m_object )
66
 
      return;
67
59
 
68
60
    m_plugin = qobject_cast<PluginType*>( m_object );
69
61
  }