From freebsd-ports Fri Apr 15 17:27:35 2016 From: Raphael Kubo da Costa Date: Fri, 15 Apr 2016 17:27:35 +0000 To: freebsd-ports Subject: Re: Need some help with c++/qt5 code Message-Id: <8637qmbx4o.fsf () FreeBSD ! org> X-MARC-Message: https://marc.info/?l=freebsd-ports&m=146074128421900 Shane Ambler writes: >> I agree. Maybe using Q_GLOBAL_STATIC helps? >> >> - Remove m_table from TPanelFactory. >> - In pane.cpp, you do something like this: >> >> typedef QMap 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"