empty() vs Null

do I need to say:
1
2
if (item.empty() || item==NULL){
}


or does empty() return true if item is NULL also?
item doesn't seem to be a pointer (since it has members accessible via . ), so comparing it to NULL doesn't make much sense
what is it?
If you are using QString or something like that then there is a difference.
If you are using something else, I don't know.
Read the documentation.
Topic archived. No new replies allowed.