summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp10
1 files changed, 6 insertions, 4 deletions
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" {
44QString output; 44QString output;
45OTicker *stocktickerTicker; 45OTicker *stocktickerTicker;
46 46
47void getStocks( const QString *blah) { 47void getStocks( const char *blah) {
48 48
49// stocktickerTicker->setText( "Downloading stock data."); 49// stocktickerTicker->setText( "Downloading stock data.");
50 stock *stocks_quotes=NULL; 50 stock *stocks_quotes=NULL;
51 stock *stocks_tmp; 51 stock *stocks_tmp;
52 qDebug("%s", blah->latin1()); 52 char *stock_liste = blah;
53 // char *stock_liste = (char *)blah->latin1();
54 qDebug("%s", stock_liste );
53 QString tempString; 55 QString tempString;
54 output = ""; 56 output = "";
55 57
@@ -96,7 +98,6 @@ void getStocks( const QString *blah) {
96 } 98 }
97 } 99 }
98 } 100 }
99 char *stock_liste = (char *)blah->latin1();
100// char *stock_liste = (char *)blah; 101// char *stock_liste = (char *)blah;
101 /* Get the stocks and process errors */ 102 /* Get the stocks and process errors */
102 error = get_stocks( stock_liste, &stocks_quotes); 103 error = get_stocks( stock_liste, &stocks_quotes);
@@ -251,7 +252,8 @@ void StockTickerPluginWidget::doStocks() {
251 252
252 if (!symbollist.isEmpty()) { 253 if (!symbollist.isEmpty()) {
253 pthread_t thread1; 254 pthread_t thread1;
254 pthread_create(&thread1,NULL, (void * (*)(void *))getStocks, &symbollist); 255 char *blah = symbollist.latin1();
256 pthread_create(&thread1,NULL, (void * (*)(void *))getStocks, blah);
255 } 257 }
256} 258}
257 259