From f7055674768fa7f0267da4a14b9061e60ebab3fc Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 31 Jan 2013 00:15:51 -0600 Subject: Rename KShared --- kexi/plugins/macros/tests/macroitemtests.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'kexi/plugins/macros/tests/macroitemtests.cpp') diff --git a/kexi/plugins/macros/tests/macroitemtests.cpp b/kexi/plugins/macros/tests/macroitemtests.cpp index 0ac780b0..044808d7 100644 --- a/kexi/plugins/macros/tests/macroitemtests.cpp +++ b/kexi/plugins/macros/tests/macroitemtests.cpp @@ -71,7 +71,7 @@ namespace KoMacroTest { TQDomDocument* doomdocument; - KSharedPtr macro; + TDESharedPtr macro; Private() : xmlguiclient(0) @@ -83,7 +83,7 @@ namespace KoMacroTest { }; } -typedef TQValueList< KSharedPtr >::size_type sizetype; +typedef TQValueList< TDESharedPtr >::size_type sizetype; MacroitemTests::MacroitemTests() : KUnitTest::SlotTester() @@ -136,7 +136,7 @@ void MacroitemTests::testMacro() kdDebug()<<"===================== testMacro() ======================" << endl; //fetch Items and .. - TQValueList< KSharedPtr >& items = d->macro->items(); + TQValueList< TDESharedPtr >& items = d->macro->items(); //... check that there is one KOMACROTEST_XASSERT( items.count(), sizetype(0) ); @@ -148,9 +148,9 @@ void MacroitemTests::testMacroItemString() kdDebug()<<"===================== testMacroItemString() ======================" << endl; - TQValueList< KSharedPtr >& items = d->macro->items(); - KSharedPtr actionptr = items[0]->action(); - KSharedPtr variableptr = actionptr->variable(TESTSTRING); + TQValueList< TDESharedPtr >& items = d->macro->items(); + TDESharedPtr actionptr = items[0]->action(); + TDESharedPtr variableptr = actionptr->variable(TESTSTRING); //create new macroitem for testing KoMacro::MacroItem* macroitem = new KoMacro::MacroItem(); @@ -185,8 +185,8 @@ void MacroitemTests::testMacroItemInt() kdDebug()<<"===================== testMacroItemInt() ======================" << endl; - TQValueList< KSharedPtr >& items = d->macro->items(); - KSharedPtr actionptr = items[0]->action(); + TQValueList< TDESharedPtr >& items = d->macro->items(); + TDESharedPtr actionptr = items[0]->action(); //create new macroitem for testing KoMacro::MacroItem* macroitem = new KoMacro::MacroItem(); @@ -195,7 +195,7 @@ void MacroitemTests::testMacroItemInt() items.append(macroitem); macroitem->setVariable(TESTINT,INT_MIN); - KSharedPtr variableptr = macroitem->variable(TESTINT); + TDESharedPtr variableptr = macroitem->variable(TESTINT); KOMACROTEST_XASSERT(sizetype(variableptr.data()), sizetype(0)); KOMACROTEST_ASSERT(sizetype(variableptr->variant().toInt()),sizetype(INT_MIN)); @@ -226,8 +226,8 @@ void MacroitemTests::testMacroItemBool() kdDebug()<<"===================== testMacroItemBool() ======================" << endl; - TQValueList< KSharedPtr >& items = d->macro->items(); - KSharedPtr actionptr = items[0]->action(); + TQValueList< TDESharedPtr >& items = d->macro->items(); + TDESharedPtr actionptr = items[0]->action(); //create new macroitem for testing KoMacro::MacroItem* macroitem = new KoMacro::MacroItem(); @@ -236,7 +236,7 @@ void MacroitemTests::testMacroItemBool() items.append(macroitem); macroitem->setVariable(TESTBOOL,"false"); - KSharedPtr variableptr = macroitem->variable(TESTBOOL); + TDESharedPtr variableptr = macroitem->variable(TESTBOOL); KOMACROTEST_XASSERT(sizetype(variableptr.data()), sizetype(0)); KOMACROTEST_ASSERT(variableptr->variant().toBool(),false); } -- cgit v1.2.1