diff options
Diffstat (limited to 'kexi/plugins/macros/tests/variabletests.cpp')
-rw-r--r-- | kexi/plugins/macros/tests/variabletests.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/kexi/plugins/macros/tests/variabletests.cpp b/kexi/plugins/macros/tests/variabletests.cpp index c9724639..4efe3953 100644 --- a/kexi/plugins/macros/tests/variabletests.cpp +++ b/kexi/plugins/macros/tests/variabletests.cpp @@ -73,7 +73,7 @@ namespace KoMacroTest { TQDomDocument* doomdocument; - KSharedPtr<KoMacro::Macro> macro; + TDESharedPtr<KoMacro::Macro> macro; Private() : xmlguiclient(0) @@ -85,7 +85,7 @@ namespace KoMacroTest { }; } -typedef TQValueList< KSharedPtr<KoMacro::MacroItem> >::size_type sizetype; +typedef TQValueList< TDESharedPtr<KoMacro::MacroItem> >::size_type sizetype; /****************************************************************************** * This is an xtra big TODO: @@ -144,7 +144,7 @@ void VariableTests::testMacro() kdDebug()<<"===================== testMacro() ======================" << endl; //fetch Items and .. - TQValueList< KSharedPtr<KoMacro::MacroItem> >& items = d->macro->items(); + TQValueList< TDESharedPtr<KoMacro::MacroItem> >& items = d->macro->items(); //... check that there is one KOMACROTEST_XASSERT( items.count(), sizetype(0) ); @@ -152,11 +152,11 @@ void VariableTests::testMacro() void VariableTests::testVariableString() { kdDebug()<<"===================== testVariableString() ======================" << endl; - TQValueList< KSharedPtr<KoMacro::MacroItem> >& items = d->macro->items(); - KSharedPtr<KoMacro::Action> actionptr = items[0]->action(); + TQValueList< TDESharedPtr<KoMacro::MacroItem> >& items = d->macro->items(); + TDESharedPtr<KoMacro::Action> actionptr = items[0]->action(); //fetch the "teststring"-variable - KSharedPtr<KoMacro::Variable> variableptr = actionptr->variable(TESTSTRING); + TDESharedPtr<KoMacro::Variable> variableptr = actionptr->variable(TESTSTRING); //So there is a variable, does hasVariable() work ? KOMACROTEST_ASSERT(actionptr->hasVariable(TESTSTRING),true); //check count of variables @@ -185,11 +185,11 @@ void VariableTests::testVariableString() { void VariableTests::testVariableInt() { kdDebug()<<"===================== testVariableInt() ======================" << endl; - TQValueList< KSharedPtr<KoMacro::MacroItem> >& items = d->macro->items(); - KSharedPtr<KoMacro::Action> actionptr = items[0]->action(); + TQValueList< TDESharedPtr<KoMacro::MacroItem> >& items = d->macro->items(); + TDESharedPtr<KoMacro::Action> actionptr = items[0]->action(); //fetch the "testint"-variable - KSharedPtr<KoMacro::Variable> variableptr = actionptr->variable(TESTINT); + TDESharedPtr<KoMacro::Variable> variableptr = actionptr->variable(TESTINT); //check that it is not null KOMACROTEST_XASSERT(sizetype(variableptr.data()), sizetype(0)); //check that it is 0 @@ -218,11 +218,11 @@ void VariableTests::testVariableInt() { void VariableTests::testVariableBool() { kdDebug()<<"===================== testVariableBool() ======================" << endl; - TQValueList< KSharedPtr<KoMacro::MacroItem> >& items = d->macro->items(); - KSharedPtr<KoMacro::Action> actionptr = items[0]->action(); + TQValueList< TDESharedPtr<KoMacro::MacroItem> >& items = d->macro->items(); + TDESharedPtr<KoMacro::Action> actionptr = items[0]->action(); //fetch the "testbool"-variable - KSharedPtr<KoMacro::Variable> variableptr = actionptr->variable(TESTBOOL); + TDESharedPtr<KoMacro::Variable> variableptr = actionptr->variable(TESTBOOL); //check that it is not null KOMACROTEST_XASSERT(sizetype(variableptr.data()), sizetype(0)); //check that it is " " |