[vtk-developers] vtkSQLDatabase doesn't use SmartPointers
David Doria
daviddoria+vtk at gmail.com
Wed Jun 2 22:13:03 EDT 2010
On Wed, Jun 2, 2010 at 7:17 PM, pat marion <pat.marion at kitware.com> wrote:
> Sorry, maybe I am misunderstanding, but can't you can use this syntax:
>
> vtkSmartPointer<vtkMySQLDatabase> db =
> vtkSmartPointer<vtkMySQLDatabase>::Take(vtkMySQLDatabase::SafeDownCast(
> vtkSQLDatabase::CreateFromURL("mysql://root@localhost/TestDatabase")));
>
> Pat
Pat,
Very cool. I didn't know about this. It works perfectly.
David T.,
I guess we don't even need to look into adding a member that returns a
smart pointer because we can just do what Pat suggested!
Thanks,
David
More information about the vtk-developers
mailing list