summaryrefslogtreecommitdiffstats
path: root/kio/tests/kdcopcheck.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kio/tests/kdcopcheck.cpp')
-rw-r--r--kio/tests/kdcopcheck.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kio/tests/kdcopcheck.cpp b/kio/tests/kdcopcheck.cpp
index b61dfd03d..23ff6605c 100644
--- a/kio/tests/kdcopcheck.cpp
+++ b/kio/tests/kdcopcheck.cpp
@@ -90,14 +90,14 @@ int TestService::exec()
int main(int argc, char *argv[])
{
- putenv("IGNORE_SYCOCA_VERSION=true");
- KApplication k(argc,argv,"whatever",false/*noGUI*/); // KMessageBox needs KApp for makeStdCaption
+ setenv("IGNORE_SYCOCA_VERSION", "true", true);
+ KApplication k(argc,argv,"whatever",false/*nostyle*/,false/*noGUI*/); // KMessageBox needs KApp for makeStdCaption
k.dcopClient()->setNotifications(true);
KService::List list = KService::allServices();
- qWarning("I found %d services.", list.count());
+ qWarning("I found %ld services.", list.count());
int i = 0;
for(KService::List::ConstIterator it = list.begin(); it != list.end(); ++it)
{