[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdegames/kpat/libkcardgame
From: Parker Coates <parker.coates () kdemail ! net>
Date: 2012-02-15 4:44:36
Message-ID: 20120215044436.ED661AC896 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1280156 by coates:
Make KCard::setPile() private. Make KCardPile a friend of KCard.
I can think of no reason that a user would need to call setPile(), but I
can think of several ways that calling it incorrectly could break
things.
M +2 -1 kcard.h
--- trunk/KDE/kdegames/kpat/libkcardgame/kcard.h #1280155:1280156
@@ -46,7 +46,6 @@
int suit() const;
int color() const;
- void setPile( KCardPile * pile );
KCardPile * pile() const;
void setFaceUp( bool faceUp );
@@ -72,12 +71,14 @@
void stopAnimation();
private:
+ void setPile( KCardPile * pile );
void setPixmap( const QPixmap & pix );
class KCardPrivate * const d;
friend class KCardPrivate;
friend class KAbstractCardDeck;
+ friend class KCardPile;
};
#endif
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic