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

List:       kde-commits
Subject:    kdeedu/keduca
From:       Anne-Marie Mahfouf <annma () kde ! org>
Date:       2004-10-17 20:28:22
Message-ID: 20041017202822.3FED816C1E () office ! kde ! org
[Download RAW message or body]

CVS commit by annma: 

QString -> const QString& (icefox tests)


  M +1 -1      keduca/kgroupeduca.cpp   1.11
  M +1 -1      keduca/kgroupeduca.h   1.6
  M +3 -3      libkeduca/fileread.cpp   1.9
  M +3 -3      libkeduca/fileread.h   1.4


--- kdeedu/keduca/keduca/kgroupeduca.cpp  #1.10:1.11
@@ -42,5 +42,5 @@ KGroupEduca::~KGroupEduca(){
 
 /** Insert a check or radio button */
-void KGroupEduca::insertAnswer( QString text)
+void KGroupEduca::insertAnswer( const QString& text)
 {
     QButton *answer = 0;

--- kdeedu/keduca/keduca/kgroupeduca.h  #1.5:1.6
@@ -35,5 +35,5 @@ public:
     ~KGroupEduca();
     /** Insert a check or radio button */
-    void insertAnswer( QString text);
+    void insertAnswer( const QString& text);
     /** Set type */
     void setType(ButtonType Type);

--- kdeedu/keduca/libkeduca/fileread.cpp  #1.8:1.9
@@ -163,5 +163,5 @@ bool FileRead::loadFile(const QString &f
 }
 
-void FileRead::setQuestion( QuestionField field, QString text)
+void FileRead::setQuestion( QuestionField field, const QString& text)
 {
 // QF_text, QF_picture, QF_type, QF_time, QF_tip, QF_explain
@@ -207,5 +207,5 @@ void FileRead::setQuestion( QuestionFiel
 }
 
-void FileRead::setResult( ResultField field, QString text)
+void FileRead::setResult( ResultField field, const QString& text)
 {
 // RS_text, QF_picture
@@ -242,5 +242,5 @@ void FileRead::setResult( ResultField fi
 }
 
-void FileRead::setAnswer( QString text, bool value, int points)
+void FileRead::setAnswer( const QString& text, bool value, int points)
 {
     Answers tmpAnswers;

--- kdeedu/keduca/libkeduca/fileread.h  #1.3:1.4
@@ -46,13 +46,13 @@ public:
     bool openFile( const KURL &url );
     /** Set value to questions fields */
-    void setQuestion( QuestionField field, QString text);
+    void setQuestion( QuestionField field, const QString& text);
     /** Set value to questions fields */
     void setQuestion( QuestionField field, int value );
     /** Set value to results fields */
-    void setResult( ResultField field, QString text);
+    void setResult( ResultField field, const QString& text);
     /** Set value to results fields */
     void setResult( ResultField field, int value );
     /** Insert an answer field */
-    void setAnswer( QString text, bool value, int points=0);
+    void setAnswer( const QString& text, bool value, int points=0);
     /** Go to the Last Record */
     void recordLast();


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

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