summaryrefslogtreecommitdiff
path: root/noncore/todayplugins
authorsandman <sandman>2002-12-18 18:59:05 (UTC)
committer sandman <sandman>2002-12-18 18:59:05 (UTC)
commit7f98b97ff4b112ddc7025b34649a4ed331b37548 (patch) (unidiff)
tree8deb6016e20ad84b99b5bf2a65cbac332e4b9e1c /noncore/todayplugins
parent25dfde78e47780c3357f8e25d8c873131fbf446d (diff)
downloadopie-7f98b97ff4b112ddc7025b34649a4ed331b37548.zip
opie-7f98b97ff4b112ddc7025b34649a4ed331b37548.tar.gz
opie-7f98b97ff4b112ddc7025b34649a4ed331b37548.tar.bz2
Parameter passing to the thread reworked a bit
Diffstat (limited to 'noncore/todayplugins') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp
index 5ddf03c..a740b58 100644
--- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp
+++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp
@@ -46,3 +46,3 @@ OTicker *stocktickerTicker;
46 46
47void getStocks( const char *blah) { 47void getStocks(char *blah) {
48 48
@@ -51,5 +51,6 @@ void getStocks( const char *blah) {
51 stock *stocks_tmp; 51 stock *stocks_tmp;
52 char *stock_liste = blah; 52 QCString stock_liste = blah;
53 ::free ( blah );
53 // char *stock_liste = (char *)blah->latin1(); 54 // char *stock_liste = (char *)blah->latin1();
54 qDebug("%s", stock_liste ); 55 qDebug("%s", stock_liste.data() );
55 QString tempString; 56 QString tempString;
@@ -102,3 +103,3 @@ void getStocks( const char *blah) {
102 /* Get the stocks and process errors */ 103 /* Get the stocks and process errors */
103 error = get_stocks( stock_liste, &stocks_quotes); 104 error = get_stocks( stock_liste.data(), &stocks_quotes);
104 105
@@ -254,4 +255,4 @@ void StockTickerPluginWidget::doStocks() {
254 pthread_t thread1; 255 pthread_t thread1;
255 char *blah = symbollist.latin1(); 256 char *blah = ::strdup(symbollist.latin1());
256 pthread_create(&thread1,NULL, (void * (*)(void *))getStocks, blah); 257 pthread_create(&thread1,NULL, (void * (*)(void *))getStocks, (void *) blah);
257 } 258 }