diff --git a/autotests/kjsfunctionstest.cpp b/autotests/kjsfunctionstest.cpp index de6a90717..00f418b8e 100644 --- a/autotests/kjsfunctionstest.cpp +++ b/autotests/kjsfunctionstest.cpp @@ -323,7 +323,7 @@ public: action( new Okular::ScriptAction( Okular::JavaScript, script ) ), box( new MessageBoxHelper( QMessageBox::Ok, result, QMessageBox::Critical, QStringLiteral( "Okular" ), false ) ) { - document->processAction( action.get() ); + document->processAction( action.data() ); } private: QScopedPointer< Okular::ScriptAction > action;