From 95f1c2be3c6de39935f0b0b8ac19046c5ef29fb5 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Wed, 20 Nov 2002 16:53:04 +0000 Subject: simpler char * to thread --- (limited to 'noncore/todayplugins/stockticker') diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp index 0d90d0f..5ddf03c 100644 --- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp +++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp @@ -44,12 +44,14 @@ extern "C" { QString output; OTicker *stocktickerTicker; -void getStocks( const QString *blah) { +void getStocks( const char *blah) { // stocktickerTicker->setText( "Downloading stock data."); stock *stocks_quotes=NULL; stock *stocks_tmp; - qDebug("%s", blah->latin1()); + char *stock_liste = blah; + // char *stock_liste = (char *)blah->latin1(); + qDebug("%s", stock_liste ); QString tempString; output = ""; @@ -96,7 +98,6 @@ void getStocks( const QString *blah) { } } } - char *stock_liste = (char *)blah->latin1(); // char *stock_liste = (char *)blah; /* Get the stocks and process errors */ error = get_stocks( stock_liste, &stocks_quotes); @@ -251,7 +252,8 @@ void StockTickerPluginWidget::doStocks() { if (!symbollist.isEmpty()) { pthread_t thread1; - pthread_create(&thread1,NULL, (void * (*)(void *))getStocks, &symbollist); + char *blah = symbollist.latin1(); + pthread_create(&thread1,NULL, (void * (*)(void *))getStocks, blah); } } -- cgit v0.9.0.2