Re: [Interest] QScopedPointer with

2013-09-20 Thread Stephen Kelly
On Tuesday, September 18, 2012 16:58:00 Alex Strickland wrote: > This is really a general C++ question, but I have looked long and hard > and not worked it out. In the code below how should I initialise v.v > using the QScopedPointer? Did you even try your example with a raw pointer instead of a

Re: [Interest] QScopedPointer with

2012-09-18 Thread interval1066
Yes. On , Alex Strickland wrote: On 2012/09/18 05:02 PM, Kandeler Christian wrote: > You are looking for QScopedPointer::reset(). Thank you, that was quick. Like this? yvreset(new a); -- Regards Alex ___ Interest mailin

Re: [Interest] QScopedPointer with

2012-09-18 Thread Alex Strickland
On 2012/09/18 05:02 PM, Kandeler Christian wrote: > You are looking for QScopedPointer::reset(). Thank you, that was quick. Like this? y.v.reset(new a); -- Regards Alex ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.or

Re: [Interest] QScopedPointer with

2012-09-18 Thread Kandeler Christian
Alex Strickland [s...@mweb.co.za] Sent: 18 September 2012 16:58 To: interest@qt-project.org Subject: [Interest] QScopedPointer with Hi This is really a general C++ question, but I have looked long and hard and not worked it out. In the code below how should I initialise v.v using the

[Interest] QScopedPointer with

2012-09-18 Thread Alex Strickland
Hi This is really a general C++ question, but I have looked long and hard and not worked it out. In the code below how should I initialise v.v using the QScopedPointer? #include class abc { }; class a : public abc { }; class x { public: QScopedPointer v; }; int main() { x y;