Returning a value passed to a constructor
General and Desktop
2
Posts
2
Posters
903
Views
1
Watching
-
Hey there,
I am having trouble figuring out how to return a value passed to a constructor.
Heres my code:
@NBhistoryItem::NBhistoryItem( QString hurl, const QDateTime &hdatetime, const QString &htitle)
{}
QString NBhistoryItem::url()
{
//return the QString hurl parameter.
}@As you can see, I need url() to return the value of the QString hurl parameter in the class constructor.
Thanks!