[Marble-devel] Review Request: Transform MarbleClock into a singleton

Dennis Nienhüser earthwings at gentoo.org
Mon May 28 18:56:15 UTC 2012


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



src/lib/MarbleClock.h
<http://git.reviewboard.kde.org/r/105088/#comment11280>

    I don't think we need that. Just have the operating system clean it up, we don't have to do any cleanup ourselves.



src/lib/MarbleClock.h
<http://git.reviewboard.kde.org/r/105088/#comment11281>

    m_instance



src/lib/MarbleClock.cpp
<http://git.reviewboard.kde.org/r/105088/#comment11282>

    0, see http://www2.research.att.com/~bs/bs_faq2.html#null



src/lib/MarbleClock.cpp
<http://git.reviewboard.kde.org/r/105088/#comment11283>

    Why the mutex? I think we don't need it.



src/lib/MarbleClock.cpp
<http://git.reviewboard.kde.org/r/105088/#comment11284>

    0


- Dennis Nienhüser


On May 28, 2012, 6:48 p.m., marbledeveloper marbledeveloper wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/105088/
> -----------------------------------------------------------
> 
> (Updated May 28, 2012, 6:48 p.m.)
> 
> 
> Review request for Marble and Torsten Rahn.
> 
> 
> Description
> -------
> 
> This patch transforms MarbleClock into a singleton. So it's possible to access to it from anywhere of the code.
> 
> 
> Diffs
> -----
> 
>   src/lib/MarbleClock.h fed4448 
>   src/lib/MarbleClock.cpp 56b2fe4 
> 
> Diff: http://git.reviewboard.kde.org/r/105088/diff/
> 
> 
> Testing
> -------
> 
> Usage example:
> 
> #include "MarbleClock.h"
> ...
> MarbleClock::instance()->setUpdateInterval(20);
> ...
> 
> 
> Thanks,
> 
> marbledeveloper marbledeveloper
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20120528/885bcbfa/attachment-0001.html>


More information about the Marble-devel mailing list