From 326f421a55537bad134a0d78202ea58e0b374c45 Mon Sep 17 00:00:00 2001 From: Roman Bovsunivskiy Date: Fri, 6 Aug 2010 17:48:22 +0000 Subject: [PATCH] Fixed newClusterDialog test (refs #1666) --- .../newClusterDialogTest/newClusterDialogTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/unit_tests/newClusterDialogTest/newClusterDialogTest.cpp b/src/gui/unit_tests/newClusterDialogTest/newClusterDialogTest.cpp index aee3c6282..ee456a196 100644 --- a/src/gui/unit_tests/newClusterDialogTest/newClusterDialogTest.cpp +++ b/src/gui/unit_tests/newClusterDialogTest/newClusterDialogTest.cpp @@ -46,7 +46,7 @@ using namespace std; class newClusterDialog_ext: public newClusterDialog { public: - newClusterDialog_ext(libfwbuilder::FWObject* obj): newClusterDialog(obj) + newClusterDialog_ext(QWidget *parent, libfwbuilder::FWObject* obj): newClusterDialog(parent, obj) { } @@ -87,7 +87,7 @@ void newClusterDialogTest::test1() FWObjectDatabase *db = new FWObjectDatabase(); XMLTools::UpgradePredicate p; db->load("test_data_work.fwb", &p, librespath); - newClusterDialog_ext *dialog = new newClusterDialog_ext(db); + newClusterDialog_ext *dialog = new newClusterDialog_ext(NULL, db); vector fws; QStringList fwnames; foreach(FWObject *obj, db->getByTypeDeep(Firewall::TYPENAME)) @@ -211,7 +211,7 @@ void newClusterDialogTest::test2() } QVERIFY(lib != NULL); - newClusterDialog_ext *dialog = new newClusterDialog_ext(FWBTree().getStandardSlotForObject(lib, Cluster::TYPENAME)); + newClusterDialog_ext *dialog = new newClusterDialog_ext(NULL, FWBTree().getStandardSlotForObject(lib, Cluster::TYPENAME)); vector fws; QStringList fwnames; foreach(FWObject *obj, db->getByTypeDeep(Firewall::TYPENAME))