Hello Salem,
Thanks for your patience and help.
I hope I've got it right.
Code:
formatSDCard myFooFormatter; // !! this is an instance
myFooFormatter.doFormat(1, num, result, ui->progress);
error: no matching function for call to 'formatSDCard::doFormat(int, QString&, bool&, QProgressBar*&)'
myFooFormatter.doFormat(1, num, result, ui->progress);
^
Code:
formatSDCard myFooFormatter; // !! this is an instance
myFooFormatter.doFormat(1, num, result, *ui->progress);
This compiles fine, adding the pointer.
Code:
Just the warning:-
..\test\formatSD.cpp: In member function 'int formatSDCard::doFormat(int, QString, bool&, QProgressBar&)':
..\test\formatSD.cpp:14:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
edit: OK, got rid of the warning by adding return(0); to the class .cpp.
Regards