I wrote this code:
QString str
= "http://www.forumcinemas.lv/rss/xml/movies/";
Download_xml *Other = new Download_xml(str);
QVector<Movie *> new_ml = Other->ml();
QString str = "http://www.forumcinemas.lv/rss/xml/movies/";
Download_xml *Other = new Download_xml(str);
QVector<Movie *> new_ml = Other->ml();
To copy to clipboard, switch view to plain text mode
The problem i have found when going through the Debug:
when new_ml is being assigned a value, Other->ml(); is empty.
The thing is, that i thought when i write:
Download_xml *Other = new Download_xml(str);
new class would be automatically created but instead, it is created only after all those 3 lines of code. What's why when I assign the value to new_ml it is empty. How do i assign to new_ml the right value?
Bookmarks