[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-ports
Subject:    Re: Need some help with c++/qt5 code
From:       Raphael Kubo da Costa <rakuco () FreeBSD ! org>
Date:       2016-04-15 17:27:35
Message-ID: 8637qmbx4o.fsf () FreeBSD ! org
[Download RAW message or body]

Shane Ambler <FreeBSD@ShaneWare.Biz> writes:

>> I agree. Maybe using Q_GLOBAL_STATIC helps?
>>
>> - Remove m_table from TPanelFactory.
>> - In pane.cpp, you do something like this:
>>
>>    typedef QMap<QString, TPanelFactory *> PanelMapType;
>>    Q_GLOBAL_STATIC(PanelMapType, s_panelMap);
>>
>>    you then need to replace uses of m_table with s_panelMap and use
>>    s_panelMap->operation() instead of m_table.operation().
>
> Thanks that does the trick.

I'm glad it worked :-) It's a good candidate for upstreaming if you're
working with them.

_______________________________________________
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic