~neon/grantlee/trunk

« back to all changes in this revision

Viewing changes to templates/tests/testloadertags.cpp

  • Committer: Stephen Kelly
  • Date: 2014-09-22 11:05:05 UTC
  • Revision ID: git-v1:d7635489161c4defb4638e5f344880f65af58291
Remove typedefs for QSharedPointers from APIs.

The typedefs hide the semantic of memory management that is being
used, which is undesirable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
 
62
62
  void doTest();
63
63
 
64
 
  InMemoryTemplateLoader::Ptr loader;
 
64
  QSharedPointer<InMemoryTemplateLoader> loader;
65
65
  Engine *m_engine;
66
66
 
67
67
};
72
72
 
73
73
  m_engine = new Engine( this );
74
74
 
75
 
  loader = InMemoryTemplateLoader::Ptr( new InMemoryTemplateLoader() );
 
75
  loader = QSharedPointer<InMemoryTemplateLoader>( new InMemoryTemplateLoader() );
76
76
  m_engine->addTemplateLoader( loader );
77
77
 
78
78
  QString appDirPath = QFileInfo( QCoreApplication::applicationDirPath() ).absoluteDir().path();