From 3c611dcf300c36f2b736b371a421b2218a8cc19d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 29 Nov 2008 11:35:03 +0000 Subject: [PATCH] Build fix for when implicit conversion in ref_ptr<> is switched off. --- examples/osgwidgetmessagebox/osgwidgetmessagebox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/osgwidgetmessagebox/osgwidgetmessagebox.cpp b/examples/osgwidgetmessagebox/osgwidgetmessagebox.cpp index b7fe61fbd..22fc3c0ec 100644 --- a/examples/osgwidgetmessagebox/osgwidgetmessagebox.cpp +++ b/examples/osgwidgetmessagebox/osgwidgetmessagebox.cpp @@ -223,7 +223,7 @@ osgWidget::Frame* MessageBox::createButtonOk(const std::string& theme, frame->resizeFrame(box->getWidth(), box->getHeight()); frame->resizeAdd(0, 0); - EventOK* event = new EventOK(frame); + EventOK* event = new EventOK(frame.get()); frame->setUpdateCallback(event); frame->addCallback(event);