[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:       2010-09-03 21:38:51
Message-ID: 20100903213851.CD584AC898 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1171449 by coates:

Replace some QList parameters with const QList references.

 M  +1 -1      kabstractcarddeck.cpp  
 M  +1 -1      kabstractcarddeck.h  
 M  +3 -1      kstandardcarddeck.cpp  
 M  +2 -2      kstandardcarddeck.h  


--- trunk/KDE/kdegames/kpat/libkcardgame/kabstractcarddeck.cpp #1171448:1171449
@@ -323,7 +323,7 @@
 }
 
 
-void KAbstractCardDeck::setDeckContents( QList<quint32> ids )
+void KAbstractCardDeck::setDeckContents( const QList<quint32> & ids )
 {
     foreach ( KCard * c, d->cards )
         delete c;
--- trunk/KDE/kdegames/kpat/libkcardgame/kabstractcarddeck.h #1171448:1171449
@@ -37,7 +37,7 @@
     explicit KAbstractCardDeck( const KCardTheme & theme = KCardTheme(), QObject * \
parent = 0 );  virtual ~KAbstractCardDeck();
 
-    void setDeckContents( QList<quint32> ids );
+    void setDeckContents( const QList<quint32> & ids );
     QList<KCard*> cards() const;
 
     void setCardWidth( int width );
--- trunk/KDE/kdegames/kpat/libkcardgame/kstandardcarddeck.cpp #1171448:1171449
@@ -65,7 +65,9 @@
 }
 
 
-void KStandardCardDeck::setDeckContents( int copies, QList<KStandardCardDeck::Suit> \
suits, QList<KStandardCardDeck::Rank> ranks) +void \
KStandardCardDeck::setDeckContents( int copies, +                                     \
const QList<Suit> & suits, +                                         const \
QList<Rank> & ranks )  {
     Q_ASSERT( copies >= 1 );
     Q_ASSERT( suits.size() >= 1 );
--- trunk/KDE/kdegames/kpat/libkcardgame/kstandardcarddeck.h #1171448:1171449
@@ -58,8 +58,8 @@
     virtual ~KStandardCardDeck();
 
     void setDeckContents( int copies = 1,
-                          QList<Suit> suits = standardSuits(),
-                          QList<Rank> ranks = standardRanks() );
+                          const QList<Suit> & suits = standardSuits(),
+                          const QList<Rank> & ranks = standardRanks() );
 
 protected:
     virtual QString elementName( quint32 id, bool faceUp = true ) const;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic