[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeedu/kstars/kstars/tools
From: Alexey Khudyakov <alexey.skladnoy () gmail ! com>
Date: 2011-02-21 19:55:07
Message-ID: 20110221195507.6241BAC8C4 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1222107 by khudyakov:
Constify ObservingList::containts
A bit dangerous since it require const_cast but should be safe
because QList::contains doesn't modify object in question
M +1 -1 observinglist.h
--- trunk/KDE/kdeedu/kstars/kstars/tools/observinglist.h #1222106:1222107
@@ -91,7 +91,7 @@
/**@return true if the object is in the observing list
*@p o pointer to the object to test.
*/
- inline bool contains( SkyObject *o ) { return \
m_ObservingList.contains( o ); } + inline bool contains( const SkyObject \
*o ) { return m_ObservingList.contains( const_cast<SkyObject*>(o) ); }
/**@return true if the window is in its default "large" state.
*/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic