summaryrefslogtreecommitdiffstats
path: root/kexi/plugins/macros/tests/macrotests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/plugins/macros/tests/macrotests.cpp')
-rw-r--r--kexi/plugins/macros/tests/macrotests.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kexi/plugins/macros/tests/macrotests.cpp b/kexi/plugins/macros/tests/macrotests.cpp
index d5d2c2af..7a5f30d0 100644
--- a/kexi/plugins/macros/tests/macrotests.cpp
+++ b/kexi/plugins/macros/tests/macrotests.cpp
@@ -83,7 +83,7 @@ namespace KoMacroTest {
};
}
-typedef TQValueList< KSharedPtr<KoMacro::MacroItem> >::size_type sizetype;
+typedef TQValueList< TDESharedPtr<KoMacro::MacroItem> >::size_type sizetype;
MacroTests::MacroTests()
@@ -136,8 +136,8 @@ void MacroTests::testMacro()
TQDomElement const domelement = d->doomdocument->documentElement();
- KSharedPtr<KoMacro::Macro> macro1 = KoMacro::Manager::self()->createMacro("testMacro");
- KSharedPtr<KoMacro::Macro> macro2 = KoMacro::Manager::self()->createMacro("testMacro");
+ TDESharedPtr<KoMacro::Macro> macro1 = KoMacro::Manager::self()->createMacro("testMacro");
+ TDESharedPtr<KoMacro::Macro> macro2 = KoMacro::Manager::self()->createMacro("testMacro");
//Is our XML parseable ?
KOMACROTEST_ASSERT(macro1->parseXML(domelement),true);
KOMACROTEST_ASSERT(macro2->parseXML(domelement),true);
@@ -150,8 +150,8 @@ void MacroTests::testMacro()
KOMACROTEST_ASSERT(macro1->name(), macro2->name() );
//create list of KsharedPtr from the childs of the macro
- TQValueList< KSharedPtr<KoMacro::MacroItem> >& items1 = macro1->items();
- TQValueList< KSharedPtr<KoMacro::MacroItem> >& items2 = macro2->items();
+ TQValueList< TDESharedPtr<KoMacro::MacroItem> >& items1 = macro1->items();
+ TQValueList< TDESharedPtr<KoMacro::MacroItem> >& items2 = macro2->items();
//check that there is one
KOMACROTEST_XASSERT( items1.count(), sizetype(0) );
@@ -174,7 +174,7 @@ void MacroTests::testMacro()
}
//fetch the first one
- KSharedPtr<KoMacro::Action> actionptr = items1[0]->action();
+ TDESharedPtr<KoMacro::Action> actionptr = items1[0]->action();
//check that it is not null
KOMACROTEST_XASSERT(sizetype(actionptr.data()), sizetype(0));
//check that it has the right name