summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (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;
-void getStocks( const char *blah) {
+void getStocks(char *blah) {
@@ -51,5 +51,6 @@ void getStocks( const char *blah) {
stock *stocks_tmp;
- char *stock_liste = blah;
+ QCString stock_liste = blah;
+ ::free ( blah );
// char *stock_liste = (char *)blah->latin1();
- qDebug("%s", stock_liste );
+ qDebug("%s", stock_liste.data() );
QString tempString;
@@ -102,3 +103,3 @@ void getStocks( const char *blah) {
/* Get the stocks and process errors */
- error = get_stocks( stock_liste, &stocks_quotes);
+ error = get_stocks( stock_liste.data(), &stocks_quotes);
@@ -254,4 +255,4 @@ void StockTickerPluginWidget::doStocks() {
pthread_t thread1;
- char *blah = symbollist.latin1();
- pthread_create(&thread1,NULL, (void * (*)(void *))getStocks, blah);
+ char *blah = ::strdup(symbollist.latin1());
+ pthread_create(&thread1,NULL, (void * (*)(void *))getStocks, (void *) blah);
}