Re: Problem compiling on RH 7.3

Rob Kaper <[email protected]>
Newsgroups gmane.comp.kde.devel.atlantik
Message-ID <[email protected]>
On Thursday 29 August 2002 23:03, Daniel Loomis wrote:
> In method `void BoardDisplay::butttonPressed ()': display widget.cpp:62:
> cannot convert `const QObject *' to `QObject *' in initialization
>
> Is there a workaround for this problem?

Use the attached patch which was committed to CVS shortly after the release.

Rob
-- 
Rob Kaper     | Gimme some love, gimme some skin,
[email protected] | if we ain't got that then we ain't got much
www.capsi.com | and we ain't got nothing, nothing! -- "Nothing" by A
display_widget.cpp.diff (text/x-diff, 572 B)
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikui/display_widget.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- kdegames/atlantik/libatlantikui/display_widget.cpp	2002/07/23 23:39:41	1.14
+++ kdegames/atlantik/libatlantikui/display_widget.cpp	2002/07/29 09:03:02	1.15
@@ -59,7 +59,7 @@
 
 void BoardDisplay::buttonPressed()
 {
-	QObject *o = QObject::sender();
+	QObject *o = const_cast<QObject*>(QObject::sender());
 	emit buttonCommand(m_buttonCommandMap[o]);
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.