[Qt-interest] Accessing a class member from an operator
John Weeks
john at wavemetrics.com
Thu Apr 22 19:20:26 CEST 2010
On Apr 22, 2010, at 10:09 AM, Oliver Heins wrote:
> When compiling, I get an »error: ‘partnerMap’ was not declared in this
> scope«, even if the operator is a friend of Editor. I don't want to
> make partnerMap global or static, which feels wrong to me even if I
> don't think there could be concurrent access to it.
You need an instance of Editor before you can access partnerMap:
Editor * editor();
editor->partnerMap.insert(...);
Regards, John Weeks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100422/0a3c5adf/attachment.html
More information about the Qt-interest-old
mailing list