[Kde-games-devel] Review Request 113671: KMines: krazy fix: Using QPointers when showing modal dialogs via exec()

Harsh Kumar harsh1kumar at gmail.com
Tue Nov 12 07:41:57 UTC 2013



> On Nov. 12, 2013, 1:17 a.m., Jan Kundrát wrote:
> > The patch breaks the build on my Gentoo Linux (amd64), KDE 4.11.2, Qt 4.8.5. You need to #include <QPointer>.

I find it strange that it doesn't compile on Gentoo. Maybe there is some platform specific includes somewhere. I have the same KDE & Qt version though I am on a i686 Arch linux install.

Anyways, I have included QPointer & updated the diff


- Harsh


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/113671/#review43457
-----------------------------------------------------------


On Nov. 12, 2013, 1:02 p.m., Harsh Kumar wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/113671/
> -----------------------------------------------------------
> 
> (Updated Nov. 12, 2013, 1:02 p.m.)
> 
> 
> Review request for KDE Games.
> 
> 
> Repository: kmines
> 
> 
> Description
> -------
> 
> This is to fix a issue flagged by Krazy Code Checker :
> ebn.kde.org/krazy/reports/kde-4.x/kdegames/kmines/index.html
> 
> In the fix, QPointers is used to create an object for modal dialogs which are shown via exec(). As mentioned in blogs.kde.org/node/3919, this fix will prevent crashing of the application when it is exited externally, for example by dbus.
> 
> Patch Changes the file - kmines/mainwindow.cpp
> 
> 
> Diffs
> -----
> 
>   mainwindow.cpp 078dc6e 
> 
> Diff: http://git.reviewboard.kde.org/r/113671/diff/
> 
> 
> Testing
> -------
> 
> Compiles & runs (on Arch Linux)
> 
> 
> Thanks,
> 
> Harsh Kumar
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-games-devel/attachments/20131112/bab29240/attachment-0001.html>


More information about the kde-games-devel mailing list